چۈشەندۈرۈش
Only Admins is a minimal plugin that restricts your entire WordPress site to Admins.
Best used as a MU-Plugin on Development and Staging sites.
ئورنىتىش
Plugin Directory
Install Only Admins as you would any other plugin.
- Go to Plugins > Add New.
- Search for Only Admins.
- Download and activate.
Must-Use Plugin
Only Admins works really well as a Must-Use Plugins. MU-Plugins cannot be disabled or edited by mistake.
To install Only Admins as a MU Plugin:
- Download the source.
- Create a
mu-plugins
folders in yourwp-content
directory (if doesn’t already exist). - Copy
onlyadmins.php
(not its enclosing folder) to mu-plugins.
FAQ
- Can I change the required user role?
-
Only Admins has no configuration, so there is no interface to change the user role.
That being said, you can simply edit it (its only a few lines long).
Simply change
current_user_can( 'administrator' )
to whichever role or capability you’d like.
باھالاشلار
بۇ قىستۇرمىغا تېخى باھا يېزىلمىدى.
تۆھپىكار ۋە ئىجادكار
«Only Admins» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا تۆھپە قوشقان.
تۆھپىكار«Only Admins» نى تىلىڭىزغا تەرجىمە قىلىڭ
ئىجادىيەتكە قىزىقامسىز؟
كودقا كۆز يۈگۈرتۈپ، SVN خەزىنە تەكشۈرۈپ ياكى RSSئارقىلىق ئىجادىيەت خاتىرىسىگە مۇشتەرى بولغىلى بولىدۇ.
ئۆزگىرىش خاتىرىسى
1.1
- Log out link when no access
- Require ABSPATH
- Typo fix