Created
March 1, 2019 19:17
-
-
Save NickGreen/893dd531897afa5e3a88449410dfe995 to your computer and use it in GitHub Desktop.
Remove WC Dashboard Widget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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