Exploring WordPress 6.4 (RC-1)


Upcoming and pending features

colorfultones.com/exploring-wordpress-6-4-rc-1


Damon Cook Avatar

Developer Advocate at WP Engine



  • Font Library (54169)
  • New blocks: Time to Read (53776), Table of Contents (42229), Scrolling Marquee (41730)
  • Public Interactivity API – merged, but not available for public use (50906)
  • Revisions to Templates and Template Parts (57704)
  • Post Formats for block themes (53049)

Briefly referred to as auto-inserting blocks.

Allows developers to attach blocks and insert them in specified locations:

  • before โ€“ inject before the target block.
  • after โ€“ inject after the target block.
  • firstChild โ€“ inject before the first inner block of the target container block.
  • lastChild โ€“ inject after the last inner block of the target container block.

See: Developer Resources > Block API Reference > Registration > Block Hooks

๐Ÿ”ด ๐ŸŸก ๐ŸŸข

block.json

{
    blockHooks: {
        'core/verse': 'before'
        'core/spacer': 'after',
        'core/column': 'firstChild',
        'core/group': 'lastChild',
    }
}

Join us in testing!


The WordPress community is us. Not “we”, or “I,” or “them.”

This presentation was created with the following: