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

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

屏幕截图

安装

  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

评价

此插件暂无评价。

贡献者及开发者

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

贡献者

将“WP Custom Admin Bar”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

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