Skip to content

Commit 7b25a81

Browse files
authored
Update wc-performance-improvements.php
Add marketplace suggestions and remove connect your store admin notice.
1 parent 3fd2d56 commit 7b25a81

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.3
6+
* Version: 1.0.4
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: 3.0.0
13-
* WC tested up to: 3.5
13+
* WC tested up to: 3.5.7
1414
*
1515
* @package WooCommerce_Performance_Improvements
1616
* @author Luke Cavanagh
@@ -73,3 +73,9 @@ function deregister_or_dequeue_scripts() {
7373
add_filter( 'woocommerce_product_export_batch_limit', function () {
7474
return 5000;
7575
}, 999 );
76+
77+
// Remove marketplace suggestions
78+
add_filter( 'woocommerce_allow_marketplace_suggestions', '__return_false' );
79+
80+
// Remove connect your store to WooCommerce.com admin notice
81+
add_filter( 'woocommerce_helper_suppress_admin_notices', '__return_true' );

0 commit comments

Comments
 (0)