Last active
December 6, 2017 11:15
-
-
Save lukecav/2f13738c965562c1517d08bc368dab11 to your computer and use it in GitHub Desktop.
Disable reviews 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_reviews_remove_dashboard_widgets() { | |
remove_meta_box( 'woocommerce_dashboard_recent_reviews', 'dashboard', 'normal'); | |
} | |
add_action('wp_dashboard_setup', 'disable_woocommerce_reviews_remove_dashboard_widgets', 40); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment