Title: WP Hide Dashboard
Author: Drew Jaynes
Published: <strong>2008 年 10 月 20 日</strong>
Last modified: 2015 年 1 月 19 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp-hide-dashboard.svg)

# WP Hide Dashboard

 作者：[Drew Jaynes](https://profiles.wordpress.org/drewapicture/)

[下载](https://downloads.wordpress.org/plugin/wp-hide-dashboard.2.2.1.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-hide-dashboard/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-hide-dashboard/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-hide-dashboard/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-hide-dashboard/#developers)

 [支持](https://wordpress.org/support/plugin/wp-hide-dashboard/)

## 描述

A simple plugin that removes the Dashboard menu, the Personal Options section and
the Help link on the Profile page, hides the Dashboard links in the toolbar menu(
if activated), and prevents Dashboard access to users assigned to the _Subscriber_
role. Useful if you allow your subscribers to edit their own profiles, but don’t
want them wandering around your WordPress admin section.

Users belonging to any of the other WordPress roles will continue to see and have
access to the other sections of the WordPress admin that correspond to their role’s
capabilities.

WP Hide Dashboard has been tested with WordPress in Single mode and Multisite mode,
and works with both of them.

**Note: Version 2.2 requires a minimum of WordPress 3.4. If you are running a version
less than that, please upgrade your WordPress install before installing or upgrading.**

#### Works With:

The following is a list of plugins that work well (no conflicts) with the WP Hide
Dashboard plugin:

 * [Members](https://wordpress.org/extend/plugins/members/) by Justin Tadlock
 * [Admin Bar Minimiser](https://wordpress.org/extend/plugins/admin-bar-minimiser/)
   by David Gwyer
 * [Logged Out Admin Bar](https://wordpress.org/extend/plugins/logged-out-admin-bar/)
   by Peter Westwood

#### Known Conflicts:

The following is a list of plugins that are known to have conflicts with the WP 
Hide Dashboard plugin:

 * [Role Manager](http://www.im-web-gefunden.de/wordpress-plugins/role-manager/)(
   Use the [IWG Hide Dashboard](http://www.im-web-gefunden.de/wordpress-plugins/iwg-hide-dashboard/)
   plugin to hide the dashboard link.)
 * [Role Scoper](https://wordpress.org/extend/plugins/role-scoper/)
 * [Flutter](https://wordpress.org/extend/plugins/fresh-page/)

Note: Please let me know if there are other plugins that conflict with WP Hide Dashboard,
and I’ll add them to the list.

#### Support:

Support is provided at: http://wphidedash.org/

## 屏幕截图

 * [[
 * WordPress 3.5 default Subscribers profile page and public-facing site (Single)
 * [[
 * WordPress 3.5 Subscribers profile page and public-facing site with WP Hide Dashboard
   activated (Single)
 * [[
 * WordPress 3.5 default Subscribers profile page and public-facing site (Multisite)
 * [[
 * WordPress 3.5 Subscribers profile page and public-facing site with WP Hide Dashboard
   activated (Multisite)

## 安装

#### Installation Instructions:

This plugin works in either the `/wp-content/plugins/` or the `/wp-content/mu-plugins/`
directory.

If installing the plugin in the `/wp-content/plugins/` directory:

 1. Download the plugin and unzip it to a folder on your computer.
 2. Upload the entire `wp-hide-dashboard` folder to that directory.
 3. Activate the plugin through the Plugins section in WordPress.
 4. That’s it – no configuration necessary.

If installing the plugin in the `/wp-content/mu-plugins/` directory:

 1. Download the plugin and unzip it to a folder on your computer.
 2. Upload the wp-hide-dashboard.php file to the `/wp-content/mu-plugins/` directory.
 3. The plugin will automatically run � there is no activation or configuration needed.

## 常见问题

  Installation Instructions

#### Installation Instructions:

This plugin works in either the `/wp-content/plugins/` or the `/wp-content/mu-plugins/`
directory.

If installing the plugin in the `/wp-content/plugins/` directory:

 1. Download the plugin and unzip it to a folder on your computer.
 2. Upload the entire `wp-hide-dashboard` folder to that directory.
 3. Activate the plugin through the Plugins section in WordPress.
 4. That’s it – no configuration necessary.

If installing the plugin in the `/wp-content/mu-plugins/` directory:

 1. Download the plugin and unzip it to a folder on your computer.
 2. Upload the wp-hide-dashboard.php file to the `/wp-content/mu-plugins/` directory.
 3. The plugin will automatically run � there is no activation or configuration needed.

  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](https://wordpress.org/extend/plugins/admin-menu-editor/)
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. Sorry, I no longer support this plugin working for any role other than Subscriber.

## 评价

![](https://secure.gravatar.com/avatar/fac02b4523bc289d905bd826af27caf1c36369fafdf0d48c7ce3172480e920f7?
s=60&d=retro&r=g)

### 󠀁[Works](https://wordpress.org/support/topic/works-366/)󠁿

 [cherryaustin](https://profiles.wordpress.org/cherryaustin/) 2016 年 10 月 7 日
2 回复

I ended up hiding the toolbar from non-contributors thus:- /* hide toolbar from 
subscribers */ add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar(){
if ( ! current_user_can( 'edit_posts' ) ) { show_admin_bar( false ); } } but I still
need Kim’s plugin to ensure that subscribers looking for my admin area can only 
see a minimal profile page. Good stuff 🙂

![](https://secure.gravatar.com/avatar/8665de9d64b89c443dd37c03c7def3788f5c5fab2b696bc81bb4705d0fa238f9?
s=60&d=retro&r=g)

### 󠀁[Greast plugin](https://wordpress.org/support/topic/greast-plugin/)󠁿

 [Matthew](https://profiles.wordpress.org/kidsguide/) 2017 年 2 月 7 日

awesome

 [ 阅读所有21条评价 ](https://wordpress.org/support/plugin/wp-hide-dashboard/reviews/)

## 贡献者及开发者

「WP Hide Dashboard」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Drew Jaynes ](https://profiles.wordpress.org/drewapicture/)
 *   [ Kim Parsell ](https://profiles.wordpress.org/kpdesign/)

[帮助将「WP Hide Dashboard」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-hide-dashboard)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-hide-dashboard/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-hide-dashboard/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-hide-dashboard/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-hide-dashboard/)。

## 更新日志

#### Version 2.2.1

 * Brought code and comments in line with core standards.
 * DrewAPicture was added as a plugin author.
 * Removed some unused code.
 * General cleanup.

#### Version 2.2:

 * Support for WordPress version 3.3 and earlier removed.
 * Reworked code to remove fatal error issue, ensure compatibility with WordPress
   3.4 and 3.5.
 * Reworked how Multisite user scenarios (assigned to no blogs/1 blog/2+ blogs) 
   are handled.

#### Version 2.1:

 * Support for WordPress version 2.9 and 3.0 removed.
 * Support for roles other than Subscriber removed.
 * Reworked code for removing Personal Options section on Profile page.
 * Added support for removing Dashboard links in new admin bar.
 * Added support for WordPress Multisite (network-activation-capable).

#### Version 2.0:

 * Code reworked; support for WordPress version 2.5 – 2.8 removed.
 * Updated menu removal code for compatibility with WordPress 3.0 (single user mode).
 * Added code to remove Personal Options section on Profile page (props to Matthew
   Pollotta).

#### Version 1.5:

 * Added code to make it easier to configure plugin if you want to change the role/
   capability level.
 * Added code to remove Tools menu.
 * Added code to remove Settings, Media and Comments menus for Contributors+ if 
   needed.
 * Added code to remove WordPress upgrade nag notice (admin will still see the notice).

#### Version 1.4:

 * Added code to remove Tools menu in 2.8.x (menu numbering changed in core).
 * Added Frequently Asked Questions and proper Changelog sections to readme.txt 
   file.

#### Version 1.3:

 * Fixed error in WordPress version checking.

#### Version 1.2:

 * Added removal of Help link on Profile page.

#### Version 1.1:

 * Added WordPress version checking.
 * Added code for defining path to /wp-content/plugins/ if outside the WordPress
   directory.
 * Added removal of Tools menu and collapsible arrow from the menu area in 2.7.x.

#### Version 1.0:

 * Initial release

## 额外信息

 *  版本 **2.2.1**
 *  最后更新：**9 年前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 3.4.0 或更高版本 **
 *  已测试的最高版本为 **4.1.0**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-hide-dashboard/)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[admin bar](https://cn.wordpress.org/plugins/tags/admin-bar/)
   [administration](https://cn.wordpress.org/plugins/tags/administration/)[dashboard](https://cn.wordpress.org/plugins/tags/dashboard/)
   [hide](https://cn.wordpress.org/plugins/tags/hide/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-hide-dashboard/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  19 条 5 星评价     ](https://wordpress.org/support/plugin/wp-hide-dashboard/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/wp-hide-dashboard/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-hide-dashboard/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-hide-dashboard/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-hide-dashboard/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-hide-dashboard/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-hide-dashboard/reviews/)

## 贡献者

 *   [ Drew Jaynes ](https://profiles.wordpress.org/drewapicture/)
 *   [ Kim Parsell ](https://profiles.wordpress.org/kpdesign/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-hide-dashboard/)