WordPress.org

Plugin Directory

Adminkeep – Disable Comments, Duplicate Posts & Site Lockdown

Adminkeep – Disable Comments, Duplicate Posts & Site Lockdown

Description

You decide what changes on this site.

Adminkeep is two sets 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

  • Disable Comments — comments off everywhere, including direct POSTs from spam bots and the REST API. Nothing is written to your database, so switching it off brings every comment back. An optional cleanup button deletes spam and trashed comments, after showing you the exact count. Guide
  • Registration Lockdown — stops new accounts being created, and refuses creation of or promotion to administrator. Blocked attempts are logged. Guide
  • Disable XML-RPC — closes xmlrpc.php completely, including pingbacks and system.multicall. Guide
  • Disable File Editing — removes the built-in plugin and theme file editors, reversibly.
  • Installation Lockdown — no new plugins or themes, no uploads, for anyone. Updates keep working, so security releases still reach your site. Guide

Content

  • Duplicate — copy any post or page as a draft. Custom fields, taxonomies, the featured image and page builder layouts (Elementor, ACF) come along intact, and the original is never modified. Guide
  • Live Draft — rework a published page in a private working copy, then publish it over the original. Same ID, same URL, and the old version is kept as a revision. Guide
  • Keep URL — rename or move a page and its old address keeps working, child pages included. Fills the gaps WordPress leaves for pages and leaves posts to core. Guide
  • Order — drag posts into the order you want on a dedicated Sort screen, one post type at a time. Lists that already ask for their own order, such as WooCommerce products and search results, are left alone. Guide
  • Replace Media — upload a new version of a file over the old one. Same file type keeps the same URL; a different type updates the posts that use it and redirects the old address. Guide

Performance

A feature you have not enabled registers zero hooks and loads zero assets.

Links

Screenshots

Installation

  1. In your WordPress admin, go to Plugins Add New Plugin, search for “Adminkeep” and click Install Now, then Activate.
  2. Open the new Adminkeep menu item. 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

FAQ

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 installing something on a whim, or uploading a plugin zip from who knows where. 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.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Adminkeep – Disable Comments, Duplicate Posts & Site Lockdown” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1.0

  • Initial release.