這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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.

使用者評論

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.
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Edit Lock〉的開發相關工作。

參與者

將〈Edit Lock〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.3

  • Tested compatibility with WordPress 6.1

1.0

  • First release