Created
January 4, 2015 20:40
-
-
Save mrbobbybryant/3746a9fa5bf0e02d6363 to your computer and use it in GitHub Desktop.
Removing Dashboard Widgets
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
<?php | |
function dwwp_remove_dashboard_widgets() { | |
remove_meta_box( 'dashboard_primary', 'dashboard', 'post_container_1' ); | |
} | |
add_action( 'wp_dashboard_setup', 'dwwp_remove_dashboard_widgets' ); |
function dwwp_remove_dashboard_widget(){
// remove dashboard widget
remove_meta_box('dashboard_primary','dashboard','side');
}
add_action('wp_dashboard_setup','dwwp_remove_dashboard_widget');
This works for me.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I like to type the code first before watching the videos. The comments indicate there will be some info to correct this during the video. I will update this comment after watching if I remember.