Automattic\WooCommerce\Admin\Features

Features::__construct()publicWC 1.0

Constructor.

Method of the class: Features{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Features::__construct() code WC 9.0.1

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 );
}