Developer Hours: Exploring Block Hooks in WordPress 6.5

One response on “Developer Hours: Exploring Block Hooks in WordPress 6.5

  1. chuwarck

    Great workshop, Nick and Bernie! I’m grateful for the amazing work you both are doing for the WordPress community.

    Like

Continue the discussion

Published

March 26, 2024

This one-hour session explores the recent changes to the Block Hooks API in WordPress 6.5 with one of the lead developers, Bernie Reiter. In addition to covering the basics, we’ll look at practical examples that you can implement in your own projects.

First introduced in WordPress 6.4, Block Hooks provides an extensibility mechanism for Block Themes. It allows you to inject a dynamic block in a location specified by an “anchor” block and a relative position. For example, you could automatically insert an eCommerce Shopping Cart block at the end of a site’s Navigation block from a plugin.

The API emulates WordPress’ Hooks concept, which allows you to extend Classic Themes using filters and actions. It’s one of the most exciting new features for extenders and will see numerous enhancements in WordPress 6.5.

Rate this:

Speakers

Nick Diego 37
Bernie Reiter 1

Language

English 10507

Download
MP4: Low, Original
Subtitles
Subtitle this video →
Producer