這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Hide Admin Bar from Non-Admins

外掛說明

Perfect for sites where there is only one admin who needs access to the dashboard and the admin bar.

When activated only administrators will see the admin bar.

This plugin is just a few lines of code. Specifically the line if(!current_user_can('administrator')) determines who the admin bar is hidden for. Feel free to edit this to your needs. E.g. using
if(!current_user_can(‘edit_posts’)) will allow authors to view the admin bar as well.

This plugin has no settings and will not be updated often, so feel free to edit to your needs.

安裝方式

  1. Upload the hide-admin-bar-from-non-admins directory to the /wp-content/plugins/ directory of your site.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Tweak the plugin code as needed. There are no settings, and this plugin will not be updated oftne.

使用者評論

2020 年 5 月 13 日
I tried more than 5 plugins, this one is the best, it shows toolbar for admin, but it hides it from users. Thank you, you deserve this positive comment
2019 年 12 月 31 日
Works like a charm! It just deactivated WP admin bar for everyone else except Administrators. Thank you!
2018 年 8 月 21 日
This plugin do not work, admin is diplaying.
閱讀全部 26 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Hide Admin Bar from Non-Admins〉的開發相關工作。

參與者

將 Hide Admin Bar from Non-Admins 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄