WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin

Loader::__construct() public WC 1.0

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

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

Хуков нет.

Возвращает

Null. Ничего.

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

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

Код Loader::__construct() WC 4.7.1

<?php
public function __construct() {
	add_action( 'init', array( __CLASS__, 'define_tables' ) );
	// Load feature before WooCommerce update hooks.
	add_action( 'init', array( __CLASS__, 'load_features' ), 4 );
	add_action( 'admin_enqueue_scripts', array( __CLASS__, 'register_scripts' ) );
	add_action( 'admin_enqueue_scripts', array( __CLASS__, 'inject_wc_settings_dependencies' ), 14 );
	add_action( 'admin_enqueue_scripts', array( __CLASS__, 'load_scripts' ), 15 );
	// Old settings injection.
	add_filter( 'woocommerce_components_settings', array( __CLASS__, 'add_component_settings' ) );
	// New settings injection.
	add_filter( 'woocommerce_shared_settings', array( __CLASS__, 'add_component_settings' ) );
	add_filter( 'admin_body_class', array( __CLASS__, 'add_admin_body_classes' ) );
	add_action( 'admin_menu', array( __CLASS__, 'register_page_handler' ) );
	add_action( 'admin_menu', array( __CLASS__, 'register_store_details_page' ) );
	add_filter( 'admin_title', array( __CLASS__, 'update_admin_title' ) );
	add_action( 'rest_api_init', array( __CLASS__, 'register_user_data' ) );
	add_action( 'in_admin_header', array( __CLASS__, 'embed_page_header' ) );
	add_filter( 'woocommerce_settings_groups', array( __CLASS__, 'add_settings_group' ) );
	add_filter( 'woocommerce_settings-wc_admin', array( __CLASS__, 'add_settings' ) );
	add_action( 'admin_head', array( __CLASS__, 'remove_notices' ) );
	add_action( 'admin_head', array( __CLASS__, 'smart_app_banner' ) );
	add_action( 'admin_notices', array( __CLASS__, 'inject_before_notices' ), -9999 );
	add_action( 'admin_notices', array( __CLASS__, 'inject_after_notices' ), PHP_INT_MAX );

	// Added this hook to delete the field woocommerce_onboarding_homepage_post_id when deleting the homepage.
	add_action( 'trashed_post', array( __CLASS__, 'delete_homepage' ) );

	// priority is 20 to run after https://github.com/woocommerce/woocommerce/blob/a55ae325306fc2179149ba9b97e66f32f84fdd9c/includes/admin/class-wc-admin-menus.php#L165.
	add_action( 'admin_head', array( __CLASS__, 'remove_app_entry_page_menu_item' ), 20 );

	/*
	* Remove the emoji script as it always defaults to replacing emojis with Twemoji images.
	* Gutenberg has also disabled emojis. More on that here -> https://github.com/WordPress/gutenberg/pull/6151
	*/
	remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );

	// Combine JSON translation files (from chunks) when language packs are updated.
	add_action( 'upgrader_process_complete', array( __CLASS__, 'combine_translation_chunk_files' ), 10, 2 );
}