Skip to content

Commit 6c38110

Browse files
authored
Update wc-performance-improvements.php
Disable marketing hub and suppress helper admin notices. Bump version and WooCommerce tested version to 4.1.0.
1 parent 3fee23b commit 6c38110

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

wc-performance-improvements.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
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.7
6+
* Version: 1.0.8
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.0.0
13+
* WC tested up to: 4.1.0
1414
*
1515
* @package WooCommerce_Performance_Improvements
1616
* @author Luke Cavanagh
@@ -88,3 +88,9 @@ function wc_disable_wc_admin_install_notice( $notice_enabled, $notice ) {
8888

8989
// Disable the WooCommerce Admin
9090
add_filter( 'woocommerce_admin_disabled', '__return_true' );
91+
92+
// Disable the WooCommere Marketing Hub
93+
add_filter( 'woocommerce_marketing_menu_items', '__return_empty_array' );
94+
95+
// Supress WooCommerce Helper Admin Notices
96+
add_filter( 'woocommerce_helper_suppress_admin_notices', '__return_true' );

0 commit comments

Comments
 (0)