Category: Block Development
-
The unfiltered_html permission: unexpected HTML stripping on multisites

If you’re working with blocks, it’s worth keeping in mind the effect of the unfiltered_html permission and how it can cause issues on multisites. The unfiltered_html permission, if not granted, will result in HTML filtering via the wp_kses function.
-
Extending a WordPress block

What I learnt when attempting to extend a WordPress block.
-
Deprecating a block – dealing with a larger codebase

If you’ve created a block plugin that’s in use anywhere other than on sites that you manage, then making sure you manage block deprecation when editing the save function or block attributes for a static block is something you may be familiar with. The developer.wordpress.org resources for understanding block deprecations are very useful – the…
-
Build a block: Displaying Garmin activity locations on a map
In the third part of this series where I’m building a block plugin, I focussed on adding configurable attributes after adding a Mapbox map. To finish off the plugin my goal was to be able to integrate with Garmin so that I could display the locations of outdoor activities on the map. As the Garmin…
-
Build a block: Add two+ text inputs to the settings vs plugin sidebars

My current personal project is to build a block plugin, and as a basic foundation I started with the Block Editor Handbook’s Create a Block Tutorial. In terms of adding new features, one aim was to create (meta) text inputs where I could input information, unique to each block being added to the page. If…