• Can anyone please point me in the direction of a plugin that will allow me to remove items for user’s dashboards that I do not want? I have tried numerous plug-ins but none have been updated since 2007 or 2008 and do not work. Any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What do you want to remove?

    I believe this still works: http://wordpress.org/extend/plugins/wp-hide-dashboard/

    I think this article is really helpful:

    http://codex.wordpress.org/Dashboard_Widgets_API#Advanced:_Removing_Dashboard_Widgets

    … basically, I just wrote a plugin like so:

    # get rid of dashboard junk
    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']['normal']['core']['dashboard_incoming_links']);
            unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
            unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
            unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
            unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
    
    } 
    
    // Hook into the 'wp_dashboard_setup' action to register our function
    add_action('wp_dashboard_setup', 'example_remove_dashboard_widgets' );

    … then dropped it into the “mu-plugins” folder, and this got rid of everything except “latest comments”, “Right now”, and “Recent Drafts”.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Does that do it for all users, though, or just non-admins?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clean Dashboard- Remove Items’ is closed to new replies.