Speakers: Bernie Reiter

  • Block Hooks: A New API to Extend Block Themes

    WordCamp Europe 2024Speaker: Bernie Reiter

    July 3, 2024 — Ever miss Classic Themes and their hooks and filters when it comes to injecting layout elements and functionality into a Block Theme?

    In this session, I will teach you how to use the new Block Hooks API (first introduced in WordPress 6.4) to inject a dynamic block into a position of your choosing within a Block Theme!

    Presentation Slides »

  • Developer Hours: Exploring Block Hooks in WordPress 6.5

    Speakers: Nick Diego, Bernie Reiter

    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.