Dec 8, 2012

Remove unwanted widget from wordpress dashboard

Edit the function.php file as follows and make available only ones that you need them to be displayed on your dashboard.

function remove_dashboard_widgets() {
//Plugins - Popular, New and Recently updated WordPress Plugins
remove_meta_box('dashboard_plugins', 'dashboard', 'normal');
//Wordpress Development Blog Feed
remove_meta_box('dashboard_primary', 'dashboard', 'side');
//Other WordPress News Feed
remove_meta_box('dashboard_secondary', 'dashboard', 'side');
//Right Now - Comments, Posts, Pages at a glance
remove_meta_box('dashboard_right_now', 'dashboard', 'normal');
//Recent Comments
remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');
//Incoming Links
remove_meta_box('dashboard_incoming_links', 'dashboard', 'normal');
//Quick Press Form
remove_meta_box('dashboard_quick_press', 'dashboard', 'side');
//Recent Drafts List
remove_meta_box('dashboard_recent_drafts', 'dashboard', 'side');
add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );

No comments:

Post a Comment