[WordPress] 外掛分享: JM Admin Role Lock | How you stop creating new administrator accounts

首頁 › 外掛目錄 › JM Admin Role Lock | How you stop creating new administrator accounts
WordPress 外掛 JM Admin Role Lock | How you stop creating new administrator accounts 的封面圖片
全新外掛
安裝啟用
—
尚無評分
14 天前
最後更新
—
問題解決
WordPress 5.0+ PHP 7.2+ v1.1.0 上架:2026-10-07

內容簡介

JM Admin Role Lock 外掛可防止新增管理員帳號,確保現有的管理員帳號不受影響,並限制其他使用者無法獲得管理員角色,從而增強網站的安全性。

【主要功能】
• 阻止新增管理員帳號
• 限制角色提升至管理員
• 自動將新使用者角色設為訂閱者
• 監控並更新管理員角色的變更
• 不影響多站點的超級管理員

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「JM Admin Role Lock | How you stop creating new administrator accounts」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

JM Admin Role Lock stops new Administrator accounts. Users who are already Administrators stay Administrators. Nobody else can be given that role.
The plugin blocks the role when WordPress saves it:

The Users screens and the users REST API no longer offer Administrator, except while editing a user who already has it.
A new user cannot be created as an Administrator. If other code requests that role anyway, the account is created as Subscriber.
An existing user who is not an Administrator cannot be promoted, from the admin screens, the REST API, or code that assigns the role.
The default role for new users cannot be Administrator. If it already was, activation changes it to Subscriber.
An Administrator can still be demoted. After that, the role cannot be given back.

On activation the plugin writes the current Administrator user IDs to administrators.json in a jm-admin-role-lock folder inside the uploads directory. On every request it compares that file with the database. A user who has the Administrator role in the database but is not listed in the file loses the role before the request continues. When an allowed Administrator is demoted, their ID is removed from the file.
There is no settings screen.
Multisite Super Admin is a network privilege, separate from the Administrator role on a site. This plugin does not change Super Admin.
What a direct database edit can still do
A SQL query can write the role into the database. The next WordPress request removes it again, as long as administrators.json is still the list created by the plugin.
Deleting that file makes the plugin take a new snapshot from whoever is an Administrator in the database at that moment. Anyone who can edit files on the server can edit the JSON and add an ID.

延伸相關外掛

文章
Filter
Mastodon