Extending WordPress using SlotFill
summary
Explains how the SlotFill extension paradigm actually wires into Gutenberg: use registerPlugin plus the hidden pluginArea to render fills into editor slots, with the SlotFillProvider moving fills into named slots. Lists 12 slots available (post status, pre‑publish panel, post‑publish panel, plugin sidebar, document settings, etc.) and notes the site editor exposes three. Demonstrates creating custom slots with createSlotFill, a dashboard widget scoped to a custom pluginArea, and a portal fallback; it works but currently renders by source order (ordering PR pending).
AI-written summary · about
chapters (24)
- 0:00Introduction
- 0:42What is SlotFill
- 1:41SlotFill Components
- 3:14Basic SlotFill System
- 4:15How WordPress Extends SlotFill
- 6:32How SlotFill Works
- 7:19SlotField Components
- 8:41Slots
- 10:29MenuItem
- 11:30BlockSettingsMenuItem
- 12:37PluginSidebar
- 13:38MoreMenuItem
- 14:26DocumentSettingPan
- 15:06Experimental Component
- 15:50Available Slots
- 16:45Create SlotFill
- 18:24Fill Props
- 19:31Multiple Slots
- 19:58Custom Slot Structure
- 20:29Custom SlotFill
- 21:08Dashboard SlotFill
- 22:45React Portal
- 23:20Steal Code
- 24:07Questions
