Automattic\WooCommerce\Admin\Features

Features::__construct()publicWC 1.0

Constructor.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код Features::__construct() WC 7.1.0

public function __construct() {
	$this->register_internal_class_aliases();
	// Load feature before WooCommerce update hooks.
	add_action( 'init', array( __CLASS__, 'load_features' ), 4 );
	add_action( 'admin_enqueue_scripts', array( __CLASS__, 'maybe_load_beta_features_modal' ) );
	add_action( 'admin_enqueue_scripts', array( __CLASS__, 'load_scripts' ), 15 );
	add_filter( 'admin_body_class', array( __CLASS__, 'add_admin_body_classes' ) );
	add_filter( 'update_option_woocommerce_allow_tracking', array( __CLASS__, 'maybe_disable_features' ), 10, 2 );
}