Automattic\WooCommerce\Internal\Admin

SettingsNavigationFeature::__construct()publicWC 1.0

Hook into WooCommerce.

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

Хуков нет.

Возвращает

null. Ничего.

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

$SettingsNavigationFeature = new SettingsNavigationFeature();
$SettingsNavigationFeature->__construct();

Код SettingsNavigationFeature::__construct() WC 6.6.1

public function __construct() {
	if ( ! is_admin() ) {
		return;
	}

	add_filter( 'woocommerce_settings_features', array( $this, 'add_feature_toggle' ) );

	if ( 'yes' !== get_option( 'woocommerce_settings_enabled', 'no' ) ) {
		return;
	}

	add_filter( 'woocommerce_admin_shared_settings', array( __CLASS__, 'add_component_settings' ) );
	// Run this after the original WooCommerce settings have been added.
	add_action( 'admin_menu', array( $this, 'register_pages' ), 60 );
	add_action( 'init', array( $this, 'redirect_core_settings_pages' ) );
}