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

Lock Reusable Blocks

外掛說明

Lock Reusable Blocks in the editor to avoid unintentional global changes.
Editing reusable blocks in posts is locked, and you have access to two actions when you select a reusable block in the editor:
– Edit the reusable block (opens the block editing page in a new tab)
– Convert to regular blocks (native action)

Options are availables in Settings > Writing screen to hide Edit and Convert reusable blocks buttons in block overlay.

螢幕擷圖

  • Reusable Block locked in the editor.
  • Settings screen.

使用者評論

2023 年 9 月 1 日
Before this plugin, I'd spent hours redoing work on my Reusable Blocks I had accidentally overwritten or completely deleted. Wish I could go back in time and tell myself to install this plugin as soon as I started! Easy install, clear UI, is working perfectly with my other plugins and my theme & WordPress version (Twenty Twenty-Three; v6.1). As others have said, this plugin should be a feature by default. I'm not blogging without it ever again!
2023 年 3 月 31 日
This plugin doesn't get enough attention. THIS is the way reusable blocks are supposed to work. Letting the user know what they are doing: editing the reusable block side wide, or just editing a single instance. Clean, simple, obvious. Couldn't be better! I have been following the problems with reusable blocks for years now. On Github there seems to be a consensus that this issue is somehow resolved since block locking became a feature. But still, it is way too easy to accidentally edit reusable blocks in an unintended way, even with WP 6.2. Actually it used to be good when Gutenberg just released. Back then, reusable blocks where one of the few features that they completely nailed from the start. Why this was changed in such a bad way, is a complete mystery to me. Thanks for writing this essential plugin. Hope it makes it into core!
2023 年 1 月 25 日 1 則留言
This should be a feature of WP and not a plugin. It's really useful for building large sites and not having clients mess them up afterward due to the ability to edit useable blocks.
2022 年 6 月 2 日
This is the design that should the reusable blocks have out of the box!
2022 年 4 月 4 日
All plugins should be like this. Simple one job plugins that do one thing well. I follow this philosophy in my own plugins and it is good to see others doing the same.
2022 年 3 月 23 日
Even people who understand the concept of reusable blocks tend to unintentionally edit such blocks from time to time (changing it for the whole website instead of a single instance). This plug-in protects reusable blocks in simple, elegant way – and you can still edit them if this is really your intension. Should be integrated into WP core.
閱讀全部 6 則使用者評論

參與者及開發者

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

參與者

〈Lock Reusable Blocks〉外掛目前已有 9 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

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

對開發相關資訊感興趣?

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

變更記錄

0.6.0

  • Fix PHP Parse error in add_settings_field functions on PHP 7.2

0.5.0

  • Fix hide Edit/Convert buttons settings are inverted

0.4.0

  • Add options in Settings > Writing screen to allow admin disable Edit and Convert reusable blocks buttons in block overlay.
    Props to @btxtiger for the idea.

0.3.0

  • Convert to regular blocks button: switch to primary style

0.2.0

  • Add button to convert reusable block to regular blocks

0.1.0

  • First release