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

Only Admins

描述

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.

  1. Go to Plugins > Add New.
  2. Search for Only Admins.
  3. 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:

  1. Download the source.
  2. Create a mu-plugins folders in your wp-content directory (if doesn’t already exist).
  3. Copy onlyadmins.php (not its enclosing folder) to mu-plugins.

常見問題

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.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Only Admins” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Only Admins 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.1

  • Log out link when no access
  • Require ABSPATH
  • Typo fix