Skip to content

Commit 3f10d06

Browse files
authored
Update wc-performance-improvements.php
Disable the setup widget from WooCommerce Admin.
1 parent 6edea5b commit 3f10d06

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wc-performance-improvements.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,9 @@ function disable_features( $features ) {
101101

102102
// Disable WooCommerce no-cache headers
103103
add_filter( 'woocommerce_enable_nocache_headers', '__return_false' );
104+
105+
// Disable setup widget
106+
function disable_woocommerce_setup_remove_dashboard_widgets() {
107+
remove_meta_box( 'wc_admin_dashboard_setup', 'dashboard', 'normal');
108+
}
109+
add_action('wp_dashboard_setup', 'disable_woocommerce_setup_remove_dashboard_widgets', 40);

0 commit comments

Comments
 (0)