Skip to content

Commit 8df8ad5

Browse files
authored
Update wc-performance-improvements.php
Bump WooCommerce tested version to 4.2.0 and include filter for removing processing order count in wp-admin.
1 parent 3b4a464 commit 8df8ad5

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

wc-performance-improvements.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,19 @@
33
* Plugin Name: Performance Improvements for WooCommerce
44
* Plugin URI: https://github.com/lukecav/performance-improvements-for-woocommerce
55
* Description: Performance tweaks related to orders on the front-end and the back-end of a store. Will also disable dashboard widgets for reviews and status in WooCommerce. Also includes specific tweaks for products in the back-end of the store.
6-
* Version: 1.0.8
6+
* Version: 1.0.9
77
* Author: Luke Cavanagh
88
* Author URI: https://github.com/lukecav
99
* License: GPL2
1010
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
1111
*
1212
* WC requires at least: 4.0.0
13-
* WC tested up to: 4.1.1
13+
* WC tested up to: 4.2.0
1414
*
1515
* @package WooCommerce_Performance_Improvements
1616
* @author Luke Cavanagh
1717
*/
1818

19-
// Remove order status from my account orders
20-
add_filter('woocommerce_my_account_my_orders_columns', 'remove_my_account_order_status', 10);
21-
22-
function remove_my_account_order_status($order){
23-
unset($order['order-status']);
24-
return $order;
25-
}
26-
2719
// Remove order total from my account orders
2820
add_filter('woocommerce_my_account_my_orders_columns', 'remove_my_account_order_total', 10);
2921

@@ -94,3 +86,6 @@ function wc_disable_wc_admin_install_notice( $notice_enabled, $notice ) {
9486

9587
// Supress WooCommerce Helper Admin Notices
9688
add_filter( 'woocommerce_helper_suppress_admin_notices', '__return_true' );
89+
90+
// Remove Processing Order Count in wp-admin
91+
add_filter( 'woocommerce_menu_order_count', 'false' );

0 commit comments

Comments
 (0)