跳到内容

Post Lockdown

v4.1.1

andyexeter · 2015年5月19日 上架

Stop non-admin users trashing, deleting or unpublishing your site-critical posts and pages. Lock content down in seconds - no code required.

正在使用
1,000+
评分
4.6 / 5
累计下载
3.2 万
最近更新
2026年9月10日
9 条评价需要 WordPress 4.6+已测试到 7.1.5PHP 7.4+

贡献者

截图

The Post Lockdown settings page. Add posts and pages of any type to the Locked or Protected boxes.
The Post Lockdown settings page. Add posts and pages of any type to the Locked or Protected boxes.
Locked and protected items are flagged in a status column on the posts and pages lists.
Locked and protected items are flagged in a status column on the posts and pages lists.
An Editor's view of the page list: a locked page cannot be edited, selected or trashed, while a protected page can still be edited but not trashed.
An Editor's view of the page list: a locked page cannot be edited, selected or trashed, while a protected page can still be edited but not trashed.
A protected post opened in the block editor by an Editor - the Move to Trash action is removed.
A protected post opened in the block editor by an Editor - the Move to Trash action is removed.
When a non-admin tries to unpublish a protected post the change is reverted and a notice explains why.
When a non-admin tries to unpublish a protected post the change is reverted and a notice explains why.

Your homepage. Your contact page. The landing page that took three weeks to sign off. One accidental click from a contributor
or a well-meaning editor and it’s in the trash – or worse, gone for good.

Post Lockdown puts your site-critical content out of reach. Choose which posts and pages matter, and Post Lockdown stops
non-admin users from trashing or deleting them – no custom code, no role editor, no rebuilding permissions from scratch.

Two levels of safety

  • Protected – the post can still be edited, but it can’t be trashed, deleted, or unpublished. Editors keep working; the page stays live.
  • Locked – the post can’t be edited, trashed or deleted at all. Use it for content that must not change.

Set it up in under a minute

Post Lockdown adds a single settings page under Settings > Post Lockdown. Start typing to search every post, page, attachment
and custom post type on your site, click an item to add it to the Locked or Protected box, then hit Save Changes. That’s it.

Built to stay out of the way

  • Locked and protected items are clearly flagged in a status column on your post and page lists, so nobody wonders why an action is missing.
  • Works with both the block editor and the classic editor. If someone tries to unpublish a protected post, the change is reverted and a notice explains why.
  • Optional bulk actions let you lock or protect items straight from the post list.
  • Manage everything from the command line with WP-CLI – run wp postlockdown to see the available commands.
  • A full set of filters lets developers change which capability counts as “admin”, set locked and protected posts programmatically, and customise the status column. See the FAQ for the complete list.

See the screenshots for exactly what an Editor sees when they open a list of locked and protected posts.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums