Return to Snippet

Revision: 87718
at December 8, 2021 22:43 by chrisaiv


Updated URL
https://www.chrisjmendez.com/2014/09/08/wordpress-clean-up-dashboard-meta-boxes/

Updated Code
https://www.chrisjmendez.com/2014/09/08/wordpress-clean-up-dashboard-meta-boxes/

Updated Description
https://www.chrisjmendez.com/2014/09/08/wordpress-clean-up-dashboard-meta-boxes/

Revision: 67371
at September 13, 2014 10:48 by chrisaiv


Initial Code
/** ******** ******** ******** ******** ******** ******** ******** ******** 
* TITLE:       Clean up Wordpress Dashboard
* DESCRIPTION: Remove all those boxes on the Wordpress Dashboard
* 
* http://codex.wordpress.org/Function_Reference/remove_meta_box
*/
function remove_dashboard_meta() {
        remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );
        remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );
        remove_meta_box( 'dashboard_primary', 'dashboard', 'normal' );
        remove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );
        remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );
        remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );
        remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );
        remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );
        remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );
        remove_meta_box( 'dashboard_activity', 'dashboard', 'normal' );
}
add_action( 'admin_init', 'remove_dashboard_meta' );

Initial URL
http://codex.wordpress.org/Function_Reference/remove_meta_box

Initial Description
Remove all those boxes on the Wordpress Dashboard

Initial Title
Wordpress: Clean up Dashboard Meta boxes

Initial Tags
wordpress

Initial Language
PHP