diff --git a/src/Extension/LegacyExtension.php b/src/Extension/LegacyExtension.php index 4e8bd939eb75237e8144df741a834f530e6f6e52..2f8a0bb94b0842cff25e1144ef5ca36a2310d0db 100644 --- a/src/Extension/LegacyExtension.php +++ b/src/Extension/LegacyExtension.php @@ -35,8 +35,9 @@ class LegacyExtension implements Extension { $plugin_info->set_plugin_url( $plugin->get_url() ); $plugin_info->set_class_name( $config->get( 'plugin_class_name' ) ); - // $plugin_info->set_product_id( $this->product_id ); - // $plugin_info->set_plugin_shops( $this->plugin_shops ); + + $plugin_info->set_product_id( $config->get( 'product_id' ) ); + $plugin_info->set_plugin_shops( $config->get( 'plugin_shops' ) ); return $plugin_info; } diff --git a/src/HookDriver/Legacy/HookableParent.php b/src/HookDriver/Legacy/HookableParent.php index 0416ccebc9f395812ce8e3bf216fbbaf244ead91..f193a49b4a177924032d8ae8c75472b24cb7de7c 100644 --- a/src/HookDriver/Legacy/HookableParent.php +++ b/src/HookDriver/Legacy/HookableParent.php @@ -29,7 +29,7 @@ trait HookableParent { */ public function get_hookable_instance_by_class_name( $class_name ) { if ( $this->registry === null ) { - return; + return false; } foreach ( $this->registry as $hookable_object ) { diff --git a/src/HookDriver/LegacyDriver.php b/src/HookDriver/LegacyDriver.php index fe1dd752ba9896bcaf3802650a245f1f86d48a22..ff0e7e36657bcfe16da8d6fc3329d6897d8e4570 100644 --- a/src/HookDriver/LegacyDriver.php +++ b/src/HookDriver/LegacyDriver.php @@ -24,6 +24,6 @@ final class LegacyDriver implements HookDriver { $info = $this->container->get( \WPDesk_Plugin_Info::class ); $class_name = $info->get_class_name(); $p = new $class_name( $info ); - add_action( 'plugins_loaded', [ $p, 'init' ], -45 ); + add_action( 'plugins_loaded', [ $p, 'init' ], -50 ); } }