Skip to content

Instantly share code, notes, and snippets.

@NickGreen
Created March 1, 2019 19:17
Show Gist options
  • Save NickGreen/893dd531897afa5e3a88449410dfe995 to your computer and use it in GitHub Desktop.
Save NickGreen/893dd531897afa5e3a88449410dfe995 to your computer and use it in GitHub Desktop.
Remove WC Dashboard Widget
<?php
function remove_dashboard_widgets() {
// remove WooCommerce Dashboard Status
remove_meta_box( 'woocommerce_dashboard_status', 'dashboard', 'normal');
}
add_action('wp_user_dashboard_setup', 'remove_dashboard_widgets', 20);
add_action('wp_dashboard_setup', 'remove_dashboard_widgets', 20);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment