Automattic\WooCommerce\Admin

PageController::__construct()publicWC 1.0

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

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код PageController::__construct() WC 6.6.1

public function __construct() {
	add_action( 'admin_menu', array( $this, 'register_page_handler' ) );
	add_action( 'admin_menu', array( $this, 'register_store_details_page' ) );

	// 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( $this, 'remove_app_entry_page_menu_item' ), 20 );
}