Deze plugin is meer dan 2 jaar niet meer bijgewerkt. Mogelijk wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

Hide Admin Bar from Non-Admins

Omschrijving

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.

Installatie

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

FAQ

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

Beoordelingen

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.

works just fine

I’m not sure what the problem is that caused people to give this less than 5 stars. It works just fine. There are no settings. Here is what it does: Hides the admin bar from the FRONT END of your site for all but admin users. That’s it.

Secret

Jason is a legend! This is exactly what I needed.
I’ve a complicated membership informational wordpress site and didn’t want the subscribers to have access to the skeleton bones of it. I have had no problems since installing this plugin.
I had no conflicts either with any of the other plugins that I had in play – CyberChimps Responsive theme running Jasons Paid Memberships Pro and Theme My Login.
I have never built a wordpress site before and have no coding experience so this is a fantastic plugin! Very happy I found it.
Thank you so much!
🙂

Lees alle 16 beoordelingen

Bijdragers & ontwikkelaars

“Hide Admin Bar from Non-Admins” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

Vertaal “Hide Admin Bar from Non-Admins” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.