Return to Snippet

Revision: 54276
at December 18, 2011 12:27 by swoicik


Initial Code
// REMOVE META BOXES FROM WORDPRESS DASHBOARD FOR ALL USERS  
  
function example_remove_dashboard_widgets() {   // Globalize the metaboxes array, this holds all the widgets for wp-admin   global $wp_meta_boxes;    
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);  unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);} add_action('wp_dashboard_setup', 'example_remove_dashboard_widgets' );  

Initial URL

                                

Initial Description

                                

Initial Title
Remove Meta Boxes from Dashboard

Initial Tags
wordpress

Initial Language
PHP