Title: WP Custom Admin Bar
Author: Wes Todd
Published: <strong>2011 年 2 月 26 日</strong>
Last modified: 2012 年 2 月 25 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/wp-custom-admin-bar.svg)

# WP Custom Admin Bar

 作者：[Wes Todd](https://profiles.wordpress.org/jawesomeclay/)

[下载](https://downloads.wordpress.org/plugin/wp-custom-admin-bar.zip)

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

 [支持](https://wordpress.org/support/plugin/wp-custom-admin-bar/)

## 描述

A really simple and easy to use plugin to help gain control of the new Admin Bar.

This gives you options to change who sees the Admin Bar based on their user role,
change or override the default styling or remove the Admin Bar altogether. It adds
a menu to the Admin Bar which gives you the ability to disable it on a single page
or sitewide for a single browser session.

WP Custom Admin Bar supports Custom Roles.

### Donations

[Contact Me](http://wesleytodd.com/contact)

## 屏幕截图

[⌊The Administration Options Page⌉⌊The Administration Options Page⌉[

The Administration Options Page

[⌊The Admin Bar Menu⌉⌊The Admin Bar Menu⌉[

The Admin Bar Menu

[⌊Styled Admin Bar used on heyNordyne.com⌉⌊Styled Admin Bar used on heyNordyne.com⌉[

Styled Admin Bar used on [heyNordyne.com](http://heynordyne.com)

[⌊Styled Admin Bar used on the Hot Tub Things Blog⌉⌊Styled Admin Bar used on the
Hot Tub Things Blog⌉[

Styled Admin Bar used on the [Hot Tub Things Blog](http://blog.hottubthings.com)

## 安装

 1. Extract ‘wp-custom-admin-bar’ and transfer it to the ‘/wp-content/plugins/’ directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Visit the setting page to customize your admin bar (be sure to save your settings!)

## 常见问题

  Can I disable the Admin Bar for just one browsing session or on just one specific
page?

Yes you can! As of version 1.0 there is a menu item in the admin bar to disable 
the
 bar on a page by page basis or for the entire site. This setting is for a single
browser session, so if you close your browser the settings reset.

  When I disable the Admin Bar for a given User Role, does it hide the options in
their profile page?

Yes. Thanks to Rick for the suggestion.

  Does this plugin support custom roles?

Yes! This feature was added in version 1.3.0

For any other questions:
 [Contact Me](http://wesleytodd.com/contact)

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Wes Todd ](https://profiles.wordpress.org/jawesomeclay/)

[帮助将「WP Custom Admin Bar」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-custom-admin-bar)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3.4

 * Added donation buttons

#### 1.3.4

 * Updated the default styling content to the new WordPress base admin bar css
 * Added an option to reset the css to the default. (It is recommended that people
   upgrading do this to get the updated class names.)
 * Added helper text for the “Hide Site Wide” and “Hide For This Page” options.
 * Added an activation hook to instantiate the options

#### 1.3.3

 * Removed the Custom Admin Bar menu from displaying while in the WordPress admin

#### 1.3.2

 * The styles applied using the plugin now apply in the admin area

#### 1.3.1

 * Bug fix: Sometimes $wp_roles is not created yet, so check for that and create
   it if it isn’t

#### 1.3.0

 * Added support for custom roles
 * Added a description of the “Content Bump” in the admin menu

#### 1.2.1

 * Bug fix: margin was still applied if Admin Bar was hidden on a single page

#### 1.2

 * Hide Admin Bar options on the profile page for everyone if the Admin Bar is completely
   disabled
 * Bug fixes
 * Changed ‘cab_hide_by_page’ to fire on the ‘wp’ action

#### 1.1

 * Hide the Admin Bar options on the profile page for users who have the admin bar
   disabled by the plugin
 * Check on SESSION[‘cab_disabled_pages’] to make sure it is an array before disabling
   pages

#### 1.0

 * Added Admin Bar Menu to Admin Bar
 * Session based disabling for whole site or single page

## 额外信息

 *  版本 **1.3.5**
 *  最后更新：**14 年前**
 *  活跃安装数量 **400+**
 *  WordPress 版本 ** 3.1 或更高版本 **
 *  已测试的最高版本为 **3.3.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-custom-admin-bar/)
 * 标签
 * [admin bar](https://cn.wordpress.org/plugins/tags/admin-bar/)[hide](https://cn.wordpress.org/plugins/tags/hide/)
   [removal](https://cn.wordpress.org/plugins/tags/removal/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-custom-admin-bar/advanced/)

## 评级

 4.2 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Wes Todd ](https://profiles.wordpress.org/jawesomeclay/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://wesleytodd.com/contact)