Title: Post Lockdown
Author: andyexeter
Published: <strong>2015-يىلى 19-ماي</strong>
Last modified: 2026-يىلى 31-ئىيۇل

---

قىستۇرما ئىزدە

![](https://ps.w.org/post-lockdown/assets/banner-772x250.png?rev=3273464)

![](https://ps.w.org/post-lockdown/assets/icon-256x256.png?rev=3273464)

# Post Lockdown

 يازغۇچى [andyexeter](https://profiles.wordpress.org/andyexeter/)

[چۈشۈر](https://downloads.wordpress.org/plugin/post-lockdown.4.1.1.zip)

 * [تەپسىلاتلار](https://ug.wordpress.org/plugins/post-lockdown/#description)
 * [باھالاشلار](https://ug.wordpress.org/plugins/post-lockdown/#reviews)
 *  [ئورنىتىش](https://ug.wordpress.org/plugins/post-lockdown/#installation)
 * [ئىجادىيەت](https://ug.wordpress.org/plugins/post-lockdown/#developers)

 [قوللاش](https://wordpress.org/support/plugin/post-lockdown/)

## چۈشەندۈرۈش

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.

## ئېكران كەسمىسى

[⌊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.⌉[

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.⌉[

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.⌉[

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.⌉[

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.⌉[

When a non-admin tries to unpublish a protected post the change is reverted and 
a notice explains why.

## ئورنىتىش

 1. In your WordPress admin, go to Plugins > Add New Plugin and search for «Post Lockdown»
 2. Click Install Now, then Activate
 3. Go to Settings > Post Lockdown and add the posts and pages you want to lock or 
    protect
 4. Click Save Changes

Prefer to install manually? Download the plugin, then either upload the zip file
via Plugins > Add New Plugin > Upload Plugin, or extract it and upload the `post-
lockdown` folder to `/wp-content/plugins/`. Activate it from the Plugins menu and
continue from step 3 above.

## FAQ

### What is a «non-admin user»?

By default, the plugin classes a non-admin as a user who does not have the `manage_options`
capability e.g an Editor.
 The capability can be filtered using the `postlockdown_admin_capability`
filter.

### Are there any other filters I can use?

The following filters are used throughout the plugin:

 * `postlockdown_admin_capability` – The capability a user must have to bypass locked/
   protected posts restrictions. Default is `manage_options`.
 * `postlockdown_capabilities` – Array of capabilities to restrict.
 * `postlockdown_excluded_post_types` – Array of post types to exclude from search.
 * `postlockdown_get_posts` – Array of args to pass to get_posts().
 * `postlockdown_locked_posts` – Array of locked post IDs. Allows you to programmatically
   add or remove post IDs. Both the key AND value must be set to the post ID.
 * `postlockdown_protected_posts` – Array of protected post IDs. Allows you to programmatically
   add or remove post IDs. Both the key AND value must be set to the post ID.
 * `postlockdown_column_hidden_default` – Boolean which dictates whether the status
   column should appear by default on post lists. Defaults to false.
 * `postlockdown_column_html` – String of HTML showing the locked or protected status
   of a post in the status column on post lists.
 * `postlockdown_column_label` – String containing the heading/label for the status
   column on post lists.

## باھالاشلار

![](https://secure.gravatar.com/avatar/f313461a2f8338a3f9844142e82b8339afeb9bd95c799daa3ff68f7d6b436218?
s=60&d=retro&r=g)

### 󠀁[Doesnt work on «patterns»](https://wordpress.org/support/topic/doesnt-work-on-patterns/)󠁿

 [tatof](https://profiles.wordpress.org/tatof/) 2024-يىلى 14-ئىيۇن 1 reply

Plugin doesn’t work for patterns. Post type «WP-block» the posts (patterns) are 
visible and selectable but does not remove the «trash» buttons

![](https://secure.gravatar.com/avatar/678f8fb4feff7727f887275d5d2d6b6a58b27d5e9e6cd007197b35945b6dabb9?
s=60&d=retro&r=g)

### 󠀁[Simple and effective](https://wordpress.org/support/topic/simple-and-effective-1558/)󠁿

 [huubl](https://profiles.wordpress.org/huubl/) 2024-يىلى 25-ئاپرېل

Post Lockdown is an excellent plugin for admins that want to restrict lower user
roles from editing or deleting specific posts.

![](https://secure.gravatar.com/avatar/b302d524b95887f5bb70cca78b7736bc5c881104126cb82a8f48ad24f5008b21?
s=60&d=retro&r=g)

### 󠀁[Do the job, but [edited]](https://wordpress.org/support/topic/do-the-job-but-4/)󠁿

 [Khaliel](https://profiles.wordpress.org/khaliel/) 2022-يىلى 22-فېۋرال 2 replies

I edit my review (original one below) as the «problem» doesn’t exist anymore with
the new version. This plugin deserves a 5 stars now that a bulk option is available.
The smartest and easiest lock post plugin! ———–ORIGINAL REVIEW BELOW———– Having 
a website with multiple authors, it’s good to finally have a simple plugin to lock
a post once it’s published to be sure nothing is modified. BUT, the current system
is not the easiest. Having to go to the options, look for the post, add it to the
list, save… it takes a lot of time when you have 300+ posts to lock and there is
no batch method. Something that would make this plugin so much easier is having 
it integrated directly on the posts list, under each post title for example, and
just having to click on it there to lock/unlock the post.

![](https://secure.gravatar.com/avatar/b386c3be63ad40515532f06f0a3f8fc3c5a9c760da75708f03eff64f35cd66d4?
s=60&d=retro&r=g)

### 󠀁[Now perfect](https://wordpress.org/support/topic/almost-perfect-316/)󠁿

 [shawfactor](https://profiles.wordpress.org/shawfactor/) 2019-يىلى 14-ئاۋغۇست 3
replies

Works very well, my only criticism is that private posts/pages should be lockable,
ie private posts should appear in the search form. In order to lock them currently
you need to publish them, then lock/portect, and then make it private again Update!!
the developer added the minor feuature request/bug. This plugin is now perfect!

![](https://secure.gravatar.com/avatar/7d1c7edcc889fc57cd6ec5294267dbe4080c6784d4bf357ef7c6c21b15cd391b?
s=60&d=retro&r=g)

### 󠀁[ok as it is, nothing extra](https://wordpress.org/support/topic/ok-as-it-is-nothing-extra/)󠁿

 [PetrP](https://profiles.wordpress.org/petrp/) 2017-يىلى 20-ئىيۇل 1 reply

it works but only as stated. Users with custom role that is not admin will be disregarded
by the plugin and get normal admin role: all locks are seen but they can edit the
page like a normal admin. In other words: you can’t differentiate between different
admin roles unfortunately, it doesn’t recognize it. Would have been great otherwise!

![](https://secure.gravatar.com/avatar/93cd57de0c03bc08173bbe424ce641b70b1bb9421f8d8fd474a33409a0f1644d?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/shameless-self-review-3/)󠁿

 [andyexeter](https://profiles.wordpress.org/andyexeter/) 2022-يىلى 23-فېۋرال

I think the plugin is really useful, otherwise I wouldn’t have made it 😉

 [ 8 باھالاشنىڭ ھەممىنى ئوقۇش ](https://wordpress.org/support/plugin/post-lockdown/reviews/)

## تۆھپىكار ۋە ئىجادكار

«Post Lockdown» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا تۆھپە قوشقان.

تۆھپىكار

 *   [ andyexeter ](https://profiles.wordpress.org/andyexeter/)

«Post Lockdown» 2 تىلغا تەرجىمە قىلىنغان. [تەرجىمانلار](https://translate.wordpress.org/projects/wp-plugins/post-lockdown/contributors)
نىڭ تۆھپىسى ئۈچۈن رەھمەت.

[«Post Lockdown» نى تىلىڭىزغا تەرجىمە قىلىڭ](https://translate.wordpress.org/projects/wp-plugins/post-lockdown)

### ئىجادىيەتكە قىزىقامسىز؟

[كودقا كۆز يۈگۈرتۈپ](https://plugins.trac.wordpress.org/browser/post-lockdown/)،
[SVN خەزىنە](https://plugins.svn.wordpress.org/post-lockdown/) تەكشۈرۈپ ياكى [RSS](https://plugins.trac.wordpress.org/log/post-lockdown/?limit=100&mode=stop_on_copy&format=rss)
ئارقىلىق [ئىجادىيەت خاتىرىسى](https://plugins.trac.wordpress.org/log/post-lockdown/)
گە مۇشتەرى بولغىلى بولىدۇ.

## ئۆزگىرىش خاتىرىسى

#### 4.1.1

 * Fixed a fatal error on activation caused by the BlockEditorNotice class file 
   being omitted from the 4.1.0 release package

#### 4.1.0

 * New feature: when a non-admin tries to unpublish a protected post in the block
   editor, the change is reverted and a notice is shown – matching the existing 
   classic editor behaviour

#### 4.0.5

 * Removed a couple of development files erroneously included in previous release

#### 4.0.4

This is a security release. Please update as soon as possible.

 * Added a capability check and nonce to the autocomplete AJAX request to prevent
   unauthorised access to the post list (Thanks to Krzysztof Zając)
 * Added sanitization to autocomplete search term
 * Added sanitization to the plugin’s settings
 * Added version string to the plugin’s enqueued CSS and JS files to prevent caching
   issues
 * Added missing text domain to the plugin’s settings page footer text
 * Added wp_kses to the Post Lockdown status column to only allow certain HTML tags

#### 4.0.2

 * Fixed a warning in WordPress 6.7 related to loading translations too early

#### 4.0

This is a major version release. Please read the following notes carefully before
updating.

 * Fixed a bug which caused the plugin to not work correctly with the new block 
   editor (Gutenberg). This is fixed by loading the plugin for all requests (including
   REST requests) rather than just the admin area
 * Fixed a bug which caused the uninstall hook to not be called when the plugin 
   was deleted

#### 3.0.13

 * Updated minimum required WordPress version to 4.6 so translations are loaded 
   from translate.wordpress.org (Thanks to @huubl)

#### 3.0.8

 * Updated text domain to match plugin slug for localization (Thanks to @huubl)

#### 3.0.7

 * Added internationalization support to post list status column (Thanks to @huubl)

#### 3.0.6

 * Fixed a bug which allowed non-admins access to Post Lockdown’s bulk actions

#### 3.0.5

 * New feature: Added bulk actions to post list screens. This is an opt-in feature
   which must be enabled on the Post Lockdown settings page. (h/t @khaliel for the
   idea)

#### 3.0.4

 * Fixed a bug that caused authors to be able to edit and delete other’s posts (
   Thanks @kumar314)
 * Fixed a PHP warning that appeared when creating a new post

#### 3.0.3

 * Improved performance whilst fetching posts (Thanks to joshuadavidnelson)

#### 3.0

This is a major version release. Please read the following notes carefully before
updating.

 * Added WP-CLI integration. You can now edit locked and protected posts via the
   WordPress CLI! Run `wp postlockdown` to see the list of available commands
 * Bumped PHP version requirement to 5.6 and refactored codebase to use namespaces
   and PSR-2 coding standards
 * Moved get_posts wrapper method from OptionsPage to PostLockdown so it can be 
   used by the CLI
 * Added `add_locked_post`, `add_protected_post`, `remove_locked_post` and `remove_protected_post`
   methods to main class

#### 2.1

 * Added the ability to lock and protect attachments.

#### 2.0.3

 * Added private posts to the list of available posts to protect or lock.

#### 2.0.2

 * Fixed missing call to get_post_types() when retrieving posts.
 * Removed unnecessary files

#### 2.0.1

 * Added private posts to the list of available posts to protect or lock.

#### 2.0

This is a major version release. Please read the following notes carefully before
updating.

 * Major refactor of code base for performance and future scalability. If you are
   a developer using any of the plugin class static methods read the FAQ before 
   updating.
 * Added a column to post lists to show the locked or protected status of each post.
 * Added new filters: `postlockdown_column_hidden_default`, `postlockdown_column_html`
   and `postlockdown_column_label`.
 * Lots of optimisations and general improvements.

#### 1.1.1

 * Fixed PHP warning about missing admin notices file.

#### 1.1

 * Added functionality to prevent non-admins changing the post status of a protected
   published post to something which could remove it from the front end e.g Draft,
   Private or Scheduled.
 * Fixed an issue which caused a PHP warning when a non-admin used the Quick Edit
   box for a protected post.
 * Added new version of multi select plugin.
 * Lots of optimisations and general improvements.

#### 1.0.1

 * Fixed an issue where post IDs could not be filtered if none were set on the options
   page.
 * Added revisions and the WooCommerce product_variation post type to the excluded
   post types list.
 * Added escaping to placeholder attributes for search fields.
 * Added a new filter: `postlockdown_excluded_post_types`.

#### 1.0.0

 * Initial release

## Meta

 *  Version **4.1.1**
 *  ئاخىرقى يېڭىلانغان ۋاقىت **6 كۈن بۇرۇن**
 *  ئاكتىپ ئورنىتىش سانى **1,000+**
 *  WordPress نەشرى ** 4.6 ياكى يۇقىرى **
 *  **7.0.2** دا سىنالغان
 *  PHP نەشرى ** 7.4 ياكى يۇقىرى **
 *  تىل
 * [Dutch](https://nl.wordpress.org/plugins/post-lockdown/)، [English (US)](https://wordpress.org/plugins/post-lockdown/)
   ۋە [Russian](https://ru.wordpress.org/plugins/post-lockdown/).
 *  [تىلىڭىزغا تەرجىمە قىلىڭ](https://translate.wordpress.org/projects/wp-plugins/post-lockdown)
 * بەلگە
 * [delete](https://ug.wordpress.org/plugins/tags/delete/)[lock](https://ug.wordpress.org/plugins/tags/lock/)
   [permissions](https://ug.wordpress.org/plugins/tags/permissions/)[protect](https://ug.wordpress.org/plugins/tags/protect/)
   [user roles](https://ug.wordpress.org/plugins/tags/user-roles/)
 *  [ئالىي كۆرۈنۈش](https://ug.wordpress.org/plugins/post-lockdown/advanced/)

## دەرىجە

 4.6/5 يۇلتۇز

 *  [  7 5-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/post-lockdown/reviews/?filter=5)
 *  [  0 4-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/post-lockdown/reviews/?filter=4)
 *  [  2 3-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/post-lockdown/reviews/?filter=3)
 *  [  0 2-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/post-lockdown/reviews/?filter=2)
 *  [  0 1-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/post-lockdown/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/post-lockdown/reviews/#new-post)

[بارلىق ئىنكاسنى كۆرسەت](https://wordpress.org/support/plugin/post-lockdown/reviews/)

## تۆھپىكار

 *   [ andyexeter ](https://profiles.wordpress.org/andyexeter/)

## قوللاش

چۈشەندۈرۈشىڭىز بارمۇ؟ ياردەم لازىممۇ؟

 [قوللاش مۇنبىرىنى كۆرسەت](https://wordpress.org/support/plugin/post-lockdown/)

## ئىئانە

بۇ قىستۇرمىنىڭ ياخشىلىنىشىنى قوللامسىز؟

 [ بۇ قىستۇرمىغا ئىئانە قىلىش ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=BRET43XLNLZCJ&lc=GB&item_name=Post%20Lockdown&currency_code=GBP&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)