Created
October 20, 2017 15:50
-
-
Save lukecav/b8ac8d197ecd23f0409da7a4e2ea8684 to your computer and use it in GitHub Desktop.
Disable status dashboard widget in WooCommerce
This file contains 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
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://codex.wordpress.org/Function_Reference/remove_meta_box