WordPress at Your Fingertips
function is not described

WC_Admin_Menus::custom_menu_order() public WC 1.0

Custom menu order.

{} It's a method of the class: WC_Admin_Menus{}

No Hooks.

Return

true|false.

Usage

$WC_Admin_Menus = new WC_Admin_Menus();
$WC_Admin_Menus->custom_menu_order( $enabled );
$enabled(true|false) (required)
Whether custom menu ordering is already enabled.

Code of WC_Admin_Menus::custom_menu_order() WC 5.9.0

public function custom_menu_order( $enabled ) {
	return $enabled || current_user_can( 'edit_others_shop_orders' );
}