This is the base project used for the WordPress Developer Blog article: Word Switcher: Extending Core Blocks with Interactivity
A WordPress plugin that demonstrates how to extend core blocks with interactive functionality using the Interactivity API. The plugin adds dynamic word-switching capabilities to core blocks.
-
Clone this repository into your WordPress plugins directory:
cd wp-content/plugins git clone [repository-url] word-switcher-core-blocks -
Install dependencies:
cd word-switcher-core-blocks npm install -
Build the plugin:
npm run build
-
Activate the plugin in your WordPress admin panel
To build the plugin for development:
npm run buildRead the full tutorial at: https://developer.wordpress.org/news/2025/12/word-switcher-extending-core-blocks-with-interactivity/
GPL-2.0-or-later