reverted my changes as I moved the filter to wc-order-functions

This commit is contained in:
brakf 2020-02-24 08:24:12 +01:00 committed by GitHub
parent 050d702f49
commit a0ebe12cc2
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. // Add count if user has access.
if ( apply_filters( 'woocommerce_include_processing_order_count_in_menu', true ) && current_user_can( 'manage_woocommerce' ) ) { if ( apply_filters( 'woocommerce_include_processing_order_count_in_menu', true ) && current_user_can( 'manage_woocommerce' ) ) {
$order_count = apply_filters( 'woocommerce_modify_processing_order_count_in_menu', wc_processing_order_count() ); $order_count = wc_processing_order_count();
if ( $order_count ) { if ( $order_count ) {
foreach ( $submenu['woocommerce'] as $key => $menu_item ) { foreach ( $submenu['woocommerce'] as $key => $menu_item ) {