Plugin Directory

WP Hide Dashboard

Hide the Dashboard menu, Personal Options section and Help link on the Profile page from your subscribers when they are logged in.

Download Version 2.1

Q. Why did you remove support for other roles from Version 2.1?

I removed support for menu items for roles other than Subscriber. WP Hide Dashboard is a simple plugin, and was built for the Subscriber role. While I appreciate that some users need this type of functionality for other roles, most don't require it, so I don't want to bloat the plugin with unnecessary code for the majority of users.

If you need to hide admin sidebar menu links from roles other than Subscriber, I recommend using the Admin Menu Editor plugin to accomplish that goal. Currently it only removes links in the admin sidebar menu. The plugin author has indicated they may add support for removing admin bar menu links in a future version.

Q. How do I change this to hide the Dashboard link, Tools menu, Personal Options, and Help options from other roles besides Subscriber?

A. To hide these from other roles, you will need to edit the plugin in a plain text editor and make the following changes:

Version 2.1:

Support for removing other admin menu links has been removed from this version (see response to question above).

Version 1.5 and 2.0:

You will need to change the capability (line 44 in version 1.5, and line 46 in version 2.0):

/* Plugin config - user capability for the top level you want to hide everything from */
$wphd_user_capability = 'edit_posts'; /* [default for subscriber level = edit_posts] */
  • Subscriber -> Contributor: Change edit_posts to upload_files
  • Subscriber -> Author: Change edit_posts to manage_categories
  • Subscriber -> Editor: Change edit_posts to manage_options

Version 1.4 and below:

There are 3 instances of this code in the plugin - make sure you change all of them.

  • Subscriber -> Contributor: Change !current_user_can('edit_posts') to !current_user_can('upload_files')
  • Subscriber -> Author: Change !current_user_can('edit_posts') to !current_user_can('manage_categories')
  • Subscriber -> Editor: Change !current_user_can('edit_posts') to !current_user_can('manage_options')

Requires: 3.1 or higher
Compatible up to: 3.1.4
Last Updated: 2011-2-23 Downloads: 58,009

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(53 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
1 person says it's broken.

Log in to vote.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,6,6
60,5,3 50,2,1 0,1,0
100,1,1 100,1,1 50,2,1
100,11,11 50,2,1
100,10,10 50,2,1
86,7,6
94,18,17
50,2,1
50,2,1
75,4,3
100,1,1 0,2,0
67,3,2 43,7,3
100,2,2
50,2,1
100,4,4
100,1,1
100,1,1
82,11,9
0,1,0
0,1,0