WC_Admin_Menus::orders_menu()publicWC 1.0

Link to the order admin list table from the main WooCommerce menu.

Method of the class: WC_Admin_Menus{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Admin_Menus = new WC_Admin_Menus();
$WC_Admin_Menus->orders_menu(): void;

WC_Admin_Menus::orders_menu() code WC 8.6.1

public function orders_menu(): void {
	if ( wc_get_container()->get( CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled() ) {
		wc_get_container()->get( Custom_Orders_PageController::class )->setup();
	} else {
		wc_get_container()->get( COTRedirectionController::class )->setup();
	}
}