Linux 软件免费装
Banner图

Adminkeep – Email Log, Custom CSS, Disable Comments, Site Lockdown & Admin Enhancements

开发者 sajib1223
更新时间 2026年9月24日 12:35
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

custom css lockdown disable comments email log enhancements

下载

1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 1.8.0

详情介绍:

You decide what changes on this site. Adminkeep is a set of tools under that one idea. Site Lock stops things changing behind your back — no new comment, no new plugin, no new user. Content makes the changes you do want safe to make. Every feature is a single switch, off until you turn it on. Switching one off never leaves you repair work: the locks work purely through WordPress filters, so your site is exactly as it was, and what you made with the Content features stays where you put it. Site Lock Content Appearance Admin Email Performance A feature you have not enabled registers zero hooks and loads zero assets. Links

安装:

  1. In your WordPress admin, go to Plugins → Add New Plugin, search for "Adminkeep" and click Install Now, then Activate.
  2. Open Settings → Adminkeep, or the Settings link under Adminkeep on the Plugins screen. Every feature starts off; switch on only the ones you want.
  3. To remove the plugin, deactivate and delete it as usual. Uninstalling removes its settings and its own redirect table. Nothing it changed while enabled outlives switching the feature off.
Or with WP-CLI: wp plugin install adminkeep --activate

屏幕截图:

  • Nothing is deleted until you have seen the exact count. Order notes and reviews are excluded unless you say otherwise.
  • Duplicate and Live Draft where you already work — the row actions, not a new menu.
  • Swapping a file for a different format tells you what references it first, then keeps the old URL redirecting.
  • Sorting gets a screen of its own: drag a row where you want it — and the order applies to your front-end queries too.
  • Rewrite a published page while it stays published. Merge back into the same post, same URL.
  • The administrator guard is on by default. Blocking plugin-created accounts is opt-in, because it breaks WooCommerce checkout.
  • Stop plugin and theme installs and uploads, while updates keep working — and switch it back off from this same screen.
  • The redirects WordPress core skips: hierarchical pages, and posts moved to a new parent.
  • Custom CSS lives under Appearance, in WordPress's own code editor, and stays when you switch themes.
  • SMTP under Settings: pick a provider, save, and send a test email that shows what the server said.
  • Email Log under Tools: every email your site sends, whether it went out, and filters for status, period and search.
  • Open any logged email as it was sent, with its source a tab away. Scripts and remote images are blocked in the preview.

常见问题:

Will this delete my comments?

Not unless you ask it to. Turning Disable Comments on only hides them — a test asserts the comment rows are untouched after a full enable-and-disable cycle. There is a separate cleanup button that does delete, and it deletes spam and trashed comments only unless you tick the box to include approved ones. It shows the exact count, asks you to confirm, and cannot be undone.

Can I turn it back off?

Yes, instantly. There is never a migration to run or a repair step to find. The locks work purely through WordPress filters, so nothing was written to your database to undo — switch one off and your site is exactly as it was. The Content features are deliberately different: they write the things you asked them to write. A copy you made, an order you saved, a file you replaced, a redirect recorded when you renamed a page — switching the feature off stops it doing any more, and leaves what it already did alone. Work you did on purpose should not disappear because you unticked a checkbox.

Does this actually stop comment spam bots?

Yes. Bots usually POST straight to wp-comments-post.php without ever loading your page, so hiding the comment form does nothing. Adminkeep refuses those requests with a 403 before WordPress processes them, and refuses comment creation through the REST API as well.

Is Installation Lockdown a security feature?

Not exactly, and it would be dishonest to say otherwise. It is enforced in PHP, so anyone with filesystem, database or WP-CLI access can bypass it. It reliably stops accidents and casual changes — a client uploading a plugin zip from who knows where, or overwriting an installed plugin with one. Treat it as a policy guard, not a security boundary.

Why not just use the DISALLOW_FILE_MODS constant?

Because it cannot be switched off from the admin. Once it is in wp-config.php you need file access to undo it, which strands people. Installation Lockdown filters capabilities instead, so you can always turn it off from the settings screen. If you want the harder version, the constant is still there and this plugin does not interfere with it.

Does the SMTP feature work with Gmail or Microsoft 365?

Gmail and Google Workspace: yes, with an app password. Microsoft 365 and Outlook.com: no — Microsoft now requires signing in through Microsoft (OAuth) for SMTP, which this feature does not support. A dedicated SMTP plugin is the better choice there.

Where is my SMTP password kept?

Encrypted in your site's database, which protects it in database backups. For the strongest setup define ADMINKEEP_SMTP_PASS (and the other ADMINKEEP_SMTP_* constants) in wp-config.php: values set there are not saved to the database, and the settings form does not display them.

Does the email log store password-reset links?

They are removed before an email is stored, along with sign-in and account-activation links. The common link formats are covered, not every possible one, so treat it as a safeguard rather than a guarantee. If you would rather not store email content at all, Email Log has a setting to keep only the envelope — sender, recipient, subject and status — and switch content storage off.

What happens to the email log if I switch the feature off?

Switching it off stops logging. What is already logged stays until you switch it back on, delete it, or uninstall. While it is off nothing new is recorded and the entries are not aged out, so if you want the log emptied, empty it first — from Tools → Email Log, or with wp adminkeep email-log purge --all — and then switch the feature off.

Can I manage Adminkeep with WP-CLI?

Yes, since 1.5.0. wp adminkeep feature list shows every feature, and wp help adminkeep lists the commands for switching features, changing their settings, cleaning up comments, replacing the Custom CSS, configuring SMTP and choosing whether the settings screen hides unused features for a user. If Installation Lockdown has locked you out of the admin, wp adminkeep feature disable install_lock is the way back in.

更新日志:

1.9.0 1.8.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0