Automattic\WooCommerce\Internal\Admin
SettingsNavigationFeature::__construct()
Hook into WooCommerce.
Метод класса: SettingsNavigationFeature{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$SettingsNavigationFeature = new SettingsNavigationFeature(); $SettingsNavigationFeature->__construct();
Код SettingsNavigationFeature::__construct() SettingsNavigationFeature:: construct WC 8.3.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' ) ); }