PluginDocumentSettingPanel: 0 Clicks, Already There

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

PluginDocumentSettingPanel puts your setting right in the Page / Post tab of the WordPress block editor: 0 clicks, already there.

  • When it fits: 1–3 fields, a short status, a per-post switch
  • When it doesn’t: many sections → PluginSidebar · one block → InspectorControls · a check before publishing → PluginPrePublishPanel

🔕 Show it only when it matters: no images → no panel, pages & posts only 💾 Saved with the post as meta: editPost( { meta } ) + registerpostmeta

Real cases: 4WP SEO Helper, 4WP Smart Link, 4WP Style Switcher. A practice case in the Lesson IDE: real code, when to use it, why.

Components are the alphabet. UX is the sentence.

Go deeper