WC_Admin_Menus::status_menu()publicWC 1.0

Add menu item.

Method of the class: WC_Admin_Menus{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Admin_Menus = new WC_Admin_Menus();
$WC_Admin_Menus->status_menu();

WC_Admin_Menus::status_menu() code WC 8.9.0

public function status_menu() {
	$status_page = add_submenu_page( 'woocommerce', __( 'WooCommerce status', 'woocommerce' ), __( 'Status', 'woocommerce' ), 'manage_woocommerce', 'wc-status', array( $this, 'status_page' ) );

	add_action(
		'load-' . $status_page,
		function() {
			if ( 'logs' === filter_input( INPUT_GET, 'tab' ) ) {
				// Initialize the logging page controller early so that it can hook into things.
				wc_get_container()->get( LoggingPageController::class );
			}
		},
		1
	);
}