Automattic\WooCommerce
Packages::init
Init the package loader.
Метод класса: Packages{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = Packages::init();
Список изменений
С версии 3.7.0 | Введена. |
Код Packages::init() Packages::init WC 9.9.3
public static function init() { add_action( 'plugins_loaded', array( __CLASS__, 'prepare_packages' ), -100 ); add_action( 'plugins_loaded', array( __CLASS__, 'on_init' ), 10 ); // Prevent plugins already merged into WooCommerce core from getting activated as standalone plugins. add_action( 'activate_plugin', array( __CLASS__, 'deactivate_merged_plugins' ) ); // Display a notice in the Plugins tab next to plugins already merged into WooCommerce core. add_filter( 'all_plugins', array( __CLASS__, 'mark_merged_plugins_as_pending_update' ), 10, 1 ); add_action( 'after_plugin_row', array( __CLASS__, 'display_notice_for_merged_plugins' ), 10, 1 ); }