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년 May 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년 December 31일
Works like a charm! It just deactivated WP admin bar for everyone else except Administrators. Thank you!
2018년 August 21일
This plugin do not work, admin is diplaying.
모든 26 평가 읽기

기여자 & 개발자

“Hide Admin Bar from Non-Admins”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Hide Admin Bar from Non-Admins”(을)를 번역하십시오.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하십시오.