Title: Edit Lock
Author: doublejar
Published: <strong>2020 年 8 月 19 日</strong>
Last modified: 2022 年 10 月 9 日

---

搜索插件

![](https://ps.w.org/edit-lock/assets/banner-772x250.png?rev=2364700)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/edit-lock/assets/icon.svg?rev=2364682)

# Edit Lock

 作者：[doublejar](https://profiles.wordpress.org/doublejar/)

[下载](https://downloads.wordpress.org/plugin/edit-lock.1.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/edit-lock/#description)
 * [评价](https://cn.wordpress.org/plugins/edit-lock/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/edit-lock/#developers)

 [支持](https://wordpress.org/support/plugin/edit-lock/)

## 描述

When you build a custom-made website, either for your client or yourself, there 
often are pages which contains HTML codes which may break if edited by casual users.

This plugin allows you to disable editing on selected pages, to protect the pages
from accidental or unwanted changes. By locking pages and posts, these crucial pages
cannot be edited or deleted by users. An exception can be added for administrators
to modify pages irregardless of locking status.

Features:

 * Locks any pages, posts, and even media files
 * Custom post types are also supported
 * Works with Gutenberg and Classic Editor
 * Two locking mechanisms available
 * Allows admin users to modify pages without unlocking or lock for everyone

Locking mechanisms:

 * Lock mode — Disable editing or deleting locked posts.
 * Warn mode — Warn users when editing locked posts. Quick edit and deletion are
   disabled.

## 屏幕截图

 * [[
 * Page listing on WP-Admin showing a locked page.
 * [[
 * An error message is displayed when trying to edit a locked post.
 * [[
 * In case of `warn mode`, a warning popup message is displayed when trying to edit
   a locked post, similar to when you are editing plugin or theme file for the first
   time.
 * [[
 * Edit lock settings page.

## 常见问题

### How to lock a post?

If `lock toggle` option is enabled, you could lock/unlock a post when browsing posts
on the admin page. Hover a post and click the lock icon below the post title.

If the lock toggle is not enabled, you could lock a post by specifying its ID on
the settings page. Enter one ID per row into the `Locked posts` field.

### Are locked posts accessible by visitors on the site?

Yes, locking posts only disables editing and still allows them to be viewed.

## 评价

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

### 󠀁[Worth It’s Weight in Gold!!](https://wordpress.org/support/topic/worth-its-weight-in-gold-5/)󠁿

 [stevieboy23](https://profiles.wordpress.org/stevieboy23/) 2022 年 1 月 22 日

Still working in WP 5.8.3! If you build WP websites for teams of non-techies, this
is an ESSENTIAL utility for protecting your Homepage (and any other crucial pages)
from unwanted meddling… So easy to set up, this functionality should be in core.

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

### 󠀁[The plugin you never knew you needed till you use it](https://wordpress.org/support/topic/the-plugin-you-never-knew-you-needed-till-you-use-it/)󠁿

 [birdbrainsolutions](https://profiles.wordpress.org/birdbrainsolutions/) 2021 年
2 月 22 日

Thanks for creating the plugin, highly recommended! note: Any possibility of adding
the same functionality to the plugins page? edit: I tried to edit a locked page 
on the frontend, and I couldn’t, seriously loving the plugin!

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/edit-lock/reviews/)

## 贡献者及开发者

「Edit Lock」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Edit Lock」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/edit-lock)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/edit-lock/)，查看[SVN仓库](https://plugins.svn.wordpress.org/edit-lock/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/edit-lock/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/edit-lock/)。

## 更新日志

#### 1.0.3

 * Tested compatibility with WordPress 6.1

#### 1.0

 * First release

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**4 年前**
 *  活跃安装数量 **500+**
 *  WordPress 版本 ** 5.4 或更高版本 **
 *  已测试的最高版本为 **6.1.10**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/edit-lock/)
 * 标签
 * [disable post edit](https://cn.wordpress.org/plugins/tags/disable-post-edit/)
   [posts](https://cn.wordpress.org/plugins/tags/posts/)[security](https://cn.wordpress.org/plugins/tags/security/)
   [wp-admin](https://cn.wordpress.org/plugins/tags/wp-admin/)
 *  [高级视图](https://cn.wordpress.org/plugins/edit-lock/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/edit-lock/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/edit-lock/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/edit-lock/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/edit-lock/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/edit-lock/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/edit-lock/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/edit-lock/)