Hide Admin Bar from Non-Admins

Leírás

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.

Telepítés

  1. Upload the hide-admin-bar-from-non-admins directory to the /wp-content/plugins/ directory of your site.
  2. Kapcsoljuk be a bővítményt a WordPress ‘Bővítmény’ menüben.
  3. Tweak the plugin code as needed. There are no settings, and this plugin will not be updated oftne.

GYIK

Installation Instructions
  1. Upload the hide-admin-bar-from-non-admins directory to the /wp-content/plugins/ directory of your site.
  2. Kapcsoljuk be a bővítményt a WordPress ‘Bővítmény’ menüben.
  3. Tweak the plugin code as needed. There are no settings, and this plugin will not be updated oftne.

Vélemények

Would be better with selectable options

Rather than suggesting users edit the PHP code of the plugin itself, it would have been better to add an options page. I recommend Admin Bar Disabler instead (https://wordpress.org/plugins/admin-bar-disabler), which has an actual settings page where you can choose who sees the Admin Bar by role.

20 (az összes) vélemény olvasása

Közreműködők és fejlesztők

“Hide Admin Bar from Non-Admins” egy nyílt forráskódú szoftver. A bővítményhez a következő személyek járultak hozzá:

Közreműködők

Translate “Hide Admin Bar from Non-Admins” into your language.

Érdekeltek vagyunk a fejlesztésben?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.