What is the Interactivity API in WordPress 6.5?

Опубликовано: 22 Март 2026
на канале: Elliott Richmond
5,975
275

WordPress 6.5 is set to introduce the groundbreaking Interactivity API, a lightweight JavaScript library built on preactjs. Its primary objective is to standardise the reactive manipulation of HTML elements, revolutionising how developers interact with WordPress websites.

Traditionally, developers utilized various methods in vanilla JavaScript to achieve similar results. However, managing these approaches becomes cumbersome and unwieldy as applications grow more complex. The Interactive API addresses this challenge by simplifying the process.

In this video I'll walk through how to set it up and develop a simple but pratical calculator.

All links and references

Here is the link to my Github repo
https://github.com/eirichmond/interac...

Here’s the node package template command
npx @wordpress/create-block@latest pizza-dough-calculator --template @wordpress/create-block-interactive-template

More on scaffolding your first Interactivity block using npx
https://developer.wordpress.org/block...

More documentation on the Interactivity APIhttps://developer.wordpress.org/block...