WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin

FeaturePlugin::init() public WC 1.0

Init the feature plugin, only if we can detect both Gutenberg and WooCommerce.

{} Это метод класса: FeaturePlugin{}

Хуки из метода
Возвращает

Null. Ничего.

Использование

$FeaturePlugin = new FeaturePlugin();
$FeaturePlugin->init();

Код FeaturePlugin::init() WC 4.7.0

<?php
public function init() {
	/**
	 * Filter allowing WooCommerce Admin to be disabled.
	 *
	 * @param bool $disabled False.
	 */
	if ( apply_filters( 'woocommerce_admin_disabled', false ) ) {
		return;
	}

	$this->define_constants();

	require_once WC_ADMIN_ABSPATH . '/includes/core-functions.php';
	require_once WC_ADMIN_ABSPATH . '/includes/feature-config.php';
	require_once WC_ADMIN_ABSPATH . '/includes/page-controller-functions.php';
	require_once WC_ADMIN_ABSPATH . '/includes/wc-admin-update-functions.php';

	register_activation_hook( WC_ADMIN_PLUGIN_FILE, array( $this, 'on_activation' ) );
	register_deactivation_hook( WC_ADMIN_PLUGIN_FILE, array( $this, 'on_deactivation' ) );
	if ( did_action( 'plugins_loaded' ) ) {
		self::on_plugins_loaded();
	} else {
		// Make sure we hook into `plugins_loaded` before core's Automattic\WooCommerce\Package::init().
		// If core is network activated but we aren't, the packaged version of WooCommerce Admin will
		// attempt to use a data store that hasn't been loaded yet - because we've defined our constants here.
		// See: https://github.com/woocommerce/woocommerce-admin/issues/3869.
		add_action( 'plugins_loaded', array( $this, 'on_plugins_loaded' ), 9 );
	}
}