woocommerce_include_processing_order_count_in_menu хук-фильтрWC 1.0

Add count if user has access.

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

add_filter( 'woocommerce_include_processing_order_count_in_menu', 'wp_kama_woocommerce_include_processing_order_count_in_menu_filter' );

/**
 * Function for `woocommerce_include_processing_order_count_in_menu` filter-hook.
 * 
 * @param  $true 
 *
 * @return 
 */
function wp_kama_woocommerce_include_processing_order_count_in_menu_filter( $true ){

	// filter...
	return $true;
}
$true
-

Где вызывается хук

WC_Admin_Menus::menu_order_count()
woocommerce_include_processing_order_count_in_menu
woocommerce/includes/admin/class-wc-admin-menus.php 201
if ( apply_filters( 'woocommerce_include_processing_order_count_in_menu', true ) && current_user_can( 'edit_others_shop_orders' ) ) {

Где используется хук в WooCommerce

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