Questo plugin non è stato testato con le ultime 3 versioni principali (major releases) di WordPress. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

Lock Reusable Blocks

Descrizione

Blocca i blocchi riutilizzabili nell’editor per evitare modifiche globali involontarie.
La modifica dei blocchi riutilizzabili nelle pubblicazioni è bloccata e sono disponibili due azioni quando si seleziona un blocco riutilizzabile nell’editor:
– Modifica il blocco riutilizzabile (apre la pagina di modifica del blocco in una nuova scheda)
– Convertire in blocchi normali (azione nativa)

Delle opzioni sono disponibili in Impostazioni > Scrittura per nascondere i pulsanti di modifica e conversione dei blocchi riutilizzabili.

Screenshot

  • Blocco riutilizzabile bloccato nell’editor.
  • Schermata impostazioni.

Recensioni

1 Settembre 2023
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!
31 Marzo 2023
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!
25 Gennaio 2023 1 risposta
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.
4 Aprile 2022
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.
23 Marzo 2022
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.
Leggi tutte le recensioni di 6

Contributi e sviluppo

“Lock Reusable Blocks” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

“Lock Reusable Blocks” è stato tradotto in 10 lingue. Grazie ai traduttori per i loro contributi.

Traduci “Lock Reusable Blocks” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.

Changelog

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