Exploring the Interactivity API in WordPress Part 1
Listen now
Description
So begins another project! This time back inside WordPress. Brian and Aurooba discuss the Interactivity API in WordPress. They explore how to use the API, the challenges they faced, and the benefits it provides. They also touch on JavaScript modules and how they are used in the context of the Interactivity API. The conversation ends with a discussion about future topics to cover in the series as they build out the plugin using the API. A full transcript of the episode is available on the website. Watch the video podcast on YouTube and subscribe to our channel and newsletter to hear about episodes (and more) first! Quick Start Guide - https://developer.wordpress.org/block-editor/reference-guides/packages/packages-interactivity/#quick-start-guideInteractivity API Proposal - https://make.wordpress.org/core/2023/03/30/proposal-the-interactivity-api-a-better-developer-experience-in-building-interactive-blocks/WP Movies - https://wpmovies.dev/Our demo repo - https://github.com/viewSourcePodcast/vs-reading-listBrian's website – https://www.briancoords.comAurooba's website – https://aurooba.com (00:00) - Introduction (01:12) - Introducing the next project! (03:23) - What is the Interactivity API? (06:00) - The WooCommerce usecase (07:18) - How Interactivity API fits into the larger picture (10:02) - The Alpine.js Comparison (11:57) - So what project are we building? (15:24) - Tracking the list with Local Storage (16:44) - Using a resource already being loaded on the site (19:55) - How do you get started with the Interactivity API? (21:45) - What are JavaScript Modules? (32:56) - What's next in the series?
More Episodes
Aurooba and Brian dig deeper into the WordPress Interactivity API. This episode mostly focuses on the HTML directives they used in their custom blocks, how they work with block markup, and how the Interactivity API uses them to hydrate data. Along the way they also compare it to other templating...
Published 04/29/24
Published 04/29/24
Aurooba and Brian dig into the Font Library - a flagship feature launching in WordPress 6.5. Along the way they discuss the long road getting it into core, some user interface issues, and the future of "composability" in WordPress. A full transcript of the episode is available on the website....
Published 04/01/24