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:
parent
2e61321e2a
commit
213a8c532c
|
@ -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 = wc_processing_order_count();
|
$order_count = apply_filters('woocommerce_modify_processing_order_count_in_menu', wc_processing_order_count());
|
||||||
|
|
||||||
if ( $order_count ) {
|
if ( $order_count ) {
|
||||||
foreach ( $submenu['woocommerce'] as $key => $menu_item ) {
|
foreach ( $submenu['woocommerce'] as $key => $menu_item ) {
|
||||||
|
|
Loading…
Reference in New Issue