WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Admin_Menus::menu_order() public WC 1.0

Reorder the WC menu items in admin.

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

Хуков нет.

Возвращает

Массив.

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

$WC_Admin_Menus = new WC_Admin_Menus();
$WC_Admin_Menus->menu_order( $menu_order );
$menu_order(число) (обязательный)
Menu order.

Код WC_Admin_Menus::menu_order() WC 4.5.2

woocommerce/includes/admin/class-wc-admin-menus.php
<?php
public function menu_order( $menu_order ) {
	// Initialize our custom order array.
	$woocommerce_menu_order = array();

	// Get the index of our custom separator.
	$woocommerce_separator = array_search( 'separator-woocommerce', $menu_order, true );

	// Get index of product menu.
	$woocommerce_product = array_search( 'edit.php?post_type=product', $menu_order, true );

	// Loop through menu order and do some rearranging.
	foreach ( $menu_order as $index => $item ) {

		if ( 'woocommerce' === $item ) {
			$woocommerce_menu_order[] = 'separator-woocommerce';
			$woocommerce_menu_order[] = $item;
			$woocommerce_menu_order[] = 'edit.php?post_type=product';
			unset( $menu_order[ $woocommerce_separator ] );
			unset( $menu_order[ $woocommerce_product ] );
		} elseif ( ! in_array( $item, array( 'separator-woocommerce' ), true ) ) {
			$woocommerce_menu_order[] = $item;
		}
	}

	// Return order.
	return $woocommerce_menu_order;
}