Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created October 20, 2017 15:50
Show Gist options
  • Save lukecav/b8ac8d197ecd23f0409da7a4e2ea8684 to your computer and use it in GitHub Desktop.
Save lukecav/b8ac8d197ecd23f0409da7a4e2ea8684 to your computer and use it in GitHub Desktop.
Disable status dashboard widget in WooCommerce
function disable_woocommerce_status_remove_dashboard_widgets() {
remove_meta_box( 'woocommerce_dashboard_status', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'disable_woocommerce_status_remove_dashboard_widgets', 40);
@lukecav
Copy link
Author

lukecav commented Oct 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment