WC Logrono 2025 Talk
¿Realmente necesitas crear otro bloque? Veamos algunas alternativas
by Juan M. Garrido · github.com/juanma-wp/wc-logrono-2025-talk
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/juanma-wp/wc-logrono-2025-talk/archive/refs/heads/main.zipWC Logrono 2025 Talk Plugin
This repo contains a plugin with examples that showcase the ideas explained in the talk "¿Realmente necesitas desarrollar un bloque nuevo? Veamos algunas alternativas" at WordCamp Logroño (Spain) 2025
This plugin demonstrates various ways to extend WordPress core blocks without creating full custom blocks, focusing on Block Bindings and the Interactivity API.
These examples are inspired on the ideas shared on Developer Hours - Alternatives to Custom Blocks.
Features
This plugin demonstrates:
- Block Variations: Two variations for the
core/quoteblock:Quote API Editor: Allows fetching a random quote from an API (optionally filtered by author) directly within the block editor.API Quote Frontend: Uses Block Bindings to connect thecore/quoteblock's inner paragraph to a custom source, displaying a random quote (optionally filtered by tags) on the frontend.
- Custom Block Style: Registers a "Hand Drawn" block style for
core/imageandcore/quoteblocks via PHP. - Block Bindings: Shows how to register a custom block binding source (
qa/random-quote-tags) and use it to dynamically render content.
(Note: Original demo GIFs might be outdated or need regeneration based on plugin functionality)
Development
- Set up a local WordPress development environment.
- Clone / download this repository into your
wp-content/pluginsfolder. - Navigate to the
wp-content/plugins/wc-logrono-2025-talkfolder in the command line. - Run
npm installto install the plugin's dependencies (for the JavaScript build process) into a/node_modules/folder. - Run
npm run buildto compile the JavaScript assets into thebuild/folder. - Run
npm run startto compile and watch source files for changes while developing. - Login to your local WordPress development environment, navigate from Dashboard > Plugins and activate "WC Logrono 2025 Talk".
Refer to package.json for script details.