diff --git a/includes/class-woocommerce.php b/includes/class-woocommerce.php index d237265de37..181fc6ab96f 100644 --- a/includes/class-woocommerce.php +++ b/includes/class-woocommerce.php @@ -180,7 +180,6 @@ final class WooCommerce { register_shutdown_function( array( $this, 'log_errors' ) ); add_action( 'plugins_loaded', array( $this, 'on_plugins_loaded' ), -1 ); - add_action( 'plugins_loaded', array( $this, 'init_packages' ) ); add_action( 'after_setup_theme', array( $this, 'setup_environment' ) ); add_action( 'after_setup_theme', array( $this, 'include_template_functions' ), 11 ); add_action( 'init', array( $this, 'init' ), 0 ); @@ -192,21 +191,6 @@ final class WooCommerce { add_action( 'deactivated_plugin', array( $this, 'deactivated_plugin' ) ); } - /** - * Load any WooCommerce packages. - * - * Most packages will have their own init routines, so this is used early once plugins are loaded. - * - * @since 3.7.0 - */ - public function init_packages() { - if ( version_compare( PHP_VERSION, '5.6.0', '<' ) ) { - return; - } - \Automattic\WooCommerce\Blocks\Package::init(); - \Automattic\WooCommerce\RestApi\Package::init(); - } - /** * Ensures fatal errors are logged so they can be picked up in the status report. *