Automattic\WooCommerce\Internal\Features

FeaturesController::__construct()publicWC 1.0

Creates a new instance of the class.

Метод класса: FeaturesController{}

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код FeaturesController::__construct() WC 8.7.0

public function __construct() {
	self::add_filter( 'updated_option', array( $this, 'process_updated_option' ), 999, 3 );
	self::add_filter( 'added_option', array( $this, 'process_added_option' ), 999, 3 );
	self::add_filter( 'woocommerce_get_sections_advanced', array( $this, 'add_features_section' ), 10, 1 );
	self::add_filter( 'woocommerce_get_settings_advanced', array( $this, 'add_feature_settings' ), 10, 2 );
	self::add_filter( 'deactivated_plugin', array( $this, 'handle_plugin_deactivation' ), 10, 1 );
	self::add_filter( 'all_plugins', array( $this, 'filter_plugins_list' ), 10, 1 );
	self::add_action( 'admin_notices', array( $this, 'display_notices_in_plugins_page' ), 10, 0 );
	self::add_action( 'load-plugins.php', array( $this, 'maybe_invalidate_cached_plugin_data' ) );
	self::add_action( 'after_plugin_row', array( $this, 'handle_plugin_list_rows' ), 10, 2 );
	self::add_action( 'current_screen', array( $this, 'enqueue_script_to_fix_plugin_list_html' ), 10, 1 );
	self::add_filter( 'views_plugins', array( $this, 'handle_plugins_page_views_list' ), 10, 1 );
	self::add_filter( 'woocommerce_admin_shared_settings', array( $this, 'set_change_feature_enable_nonce' ), 20, 1 );
	self::add_action( 'admin_init', array( $this, 'change_feature_enable_from_query_params' ), 20, 0 );
}