Automattic\WooCommerce\Admin

PageController::__construct()publicWC 1.0

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

Method of the class: PageController{}

No Hooks.

Return

null. Nothing (null).

Usage

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

PageController::__construct() code WC 8.7.0

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