Automattic\WooCommerce\Internal\Admin

WCAdminAssets::__construct()publicWC 1.0

Constructor. Hooks added here should be removed in wc_admin_initialize via the feature plugin.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WCAdminAssets::__construct() WC 6.6.1

public function __construct() {
	Features::get_instance();
	add_action( 'admin_enqueue_scripts', array( $this, 'register_scripts' ) );

	add_action( 'admin_enqueue_scripts', array( $this, 'inject_wc_settings_dependencies' ), 14 );
	add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_assets' ), 15 );
}