PluginPrePublishPanel: Warn or Block Before Publishing?

AI writes the code. You make the right choice for the user. 🧩

PluginPrePublishPanel adds your checklist to the “Are you ready to publish?” screen in the WordPress block editor: 0 extra clicks, right when the author clicks Publish.

  • When it fits: required fields, SEO basics, brand checks
  • When it doesn’t: settings while writing → PluginDocumentSettingPanel · whole-document tools → PluginSidebar · a rule that must never break → server-side guard in PHP
  • Warn or â›” block? Warn by default. Block only hard rules with lockPostSaving(), and keep the same rule in PHP.

General patterns, no 4WP case yet. A practice case in the Lesson IDE: real code, when to use it, why.

Components are the alphabet. UX is the sentence.

Go deeper