Added new filter for modification of order count processing count in menu

In my add-on I added a new order status. Those orders I would like to also display via the order count "bubble".
This commit is contained in:
brakf 2020-01-21 20:18:57 +01:00 committed by GitHub
parent 2e61321e2a
commit 213a8c532c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ class WC_Admin_Menus {
// Add count if user has access.
if ( apply_filters( 'woocommerce_include_processing_order_count_in_menu', true ) && current_user_can( 'manage_woocommerce' ) ) {
$order_count = wc_processing_order_count();
$order_count = apply_filters('woocommerce_modify_processing_order_count_in_menu', wc_processing_order_count());
if ( $order_count ) {
foreach ( $submenu['woocommerce'] as $key => $menu_item ) {