-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Include Block Hooks in WordPress 6.4 #53987
Copy link
Copy link
Closed
Labels
Blessed for major releaseCan be iterated during a WordPress beta periodCan be iterated during a WordPress beta periodNeeds Dev NoteRequires a developer note for a major WordPress release cycleRequires a developer note for a major WordPress release cycle[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Feature] ExtensibilityThe ability to extend blocks or the editing experienceThe ability to extend blocks or the editing experience[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.Tactical breakdown of efforts across the codebase and/or tied to Overview issues.
Description
Metadata
Metadata
Labels
Blessed for major releaseCan be iterated during a WordPress beta periodCan be iterated during a WordPress beta periodNeeds Dev NoteRequires a developer note for a major WordPress release cycleRequires a developer note for a major WordPress release cycle[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Feature] ExtensibilityThe ability to extend blocks or the editing experienceThe ability to extend blocks or the editing experience[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.Tactical breakdown of efforts across the codebase and/or tied to Overview issues.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Block Hooks are formerly know as Auto-inserting Blocks.
We've merged a basic version of auto-inserting blocks in #51449, and are currently working on adding UI controls in #52969. Generally, we seem to be on track for inclusion of this new feature in WordPress 6.4, whose feature freeze is on September 26 -- a little less than a month from now.
We've previously discussed auto-inserting blocks in #39439, which has also served as a tracking issue of sorts. I think it's time to close that issue in favor of a new tracking issue for the remaining tasks for inclusion in WP 6.4.
For Gutenberg 16.6.0
RC1: August 30
Stable release: September 6
For Gutenberg 16.7.0
RC1: September 20. Last Gutenberg version to be included in WP 6.4!
__experimentalstatus (Block API: Stabilize Block Hooks feature #54293).For WordPress 6.4
Feature Freeze: September 26
block.jsonfor this.block.json, but only programmatically allowing limiting to certain template types etc.pre_-prefixed filters that allow short-circuiting an operation (to avoid auto-insertion, in this case).inject_hooked_block_markupfilter wordpress-develop#5292namefield wordpress-develop#5278Later
See #54904.
I'd say the above list sounds ambitious 😅 but not all items I've listed might be hard requirements for WP 6.4; keeping some of them for later will greatly reduce the workload. I'd be curious to hear y'all's thoughts on which ones you think should definitely go into 6.4.
The biggest risk IMO is currently the limitation to certain template types/post types, especially if we'd like to have syntax in
block.jsonto accommodate for that (and not lock down theautoInsertfield to a more basic syntax already). If we'd like to tackle that for WP 6.4, I could use a hand working on that 😬 @gziolo How's your availability in the next couple of weeks? 😅It'd be great to give the feature some extended user testing once the block inspector panel lands (i.e. GB 16.6). @annezazu Is that something you could help with (or can you point me to someone else if your plate is full enough already)?
We'll need to eventually remove
__experimentalstatus, and add theautoInsertfield to theblock.jsonschema. Ideally, I'd like to give it a bit more time and only do so in time for 16.7 RC1 (which is the final version for inclusion in WP 6.4 if I'm not mistaken); please LMK if y'all feel that we should already do so for GB 16.6.cc/ @priethor @mtias for feedback/project planning/general visibility 😄