1 vote

What is the "correct" way to add hooks or similar PHP behavior to a blocktheme?

For Block Themes PHP I use register_block_style to setup selectable style variations, create custom shortcodes, and I filter render_block. Here's a couple of PHP examples: add_shortcode( '...
Sean Conklin's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible