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

WC_Admin_Menus::menu_order_count() public WC 1.0

Adds the order processing count to the menu.

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

Возвращает

Null. Ничего.

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

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

Код WC_Admin_Menus::menu_order_count() WC 4.5.2

woocommerce/includes/admin/class-wc-admin-menus.php
<?php
public function menu_order_count() {
	global $submenu;

	if ( isset( $submenu['woocommerce'] ) ) {
		// Remove 'WooCommerce' sub menu item.
		unset( $submenu['woocommerce'][0] );

		// Add count if user has access.
		if ( apply_filters( 'woocommerce_include_processing_order_count_in_menu', true ) && current_user_can( 'edit_others_shop_orders' ) ) {
			$order_count = apply_filters( 'woocommerce_menu_order_count', wc_processing_order_count() );

			if ( $order_count ) {
				foreach ( $submenu['woocommerce'] as $key => $menu_item ) {
					if ( 0 === strpos( $menu_item[0], _x( 'Orders', 'Admin menu name', 'woocommerce' ) ) ) {
						$submenu['woocommerce'][ $key ][0] .= ' <span class="awaiting-mod update-plugins count-' . esc_attr( $order_count ) . '"><span class="processing-count">' . number_format_i18n( $order_count ) . '</span></span>'; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
						break;
					}
				}
			}
		}
	}
}