This PR contains changes made to the ACF Blocks Toolkit plugin during the development of ACF Form Blocks plugin.
Summary of Changes
Adds support for Unique Persistent Block IDs
Slight refactor of block_attrs() to be cleaner and more consistent
Allows block templates (inner blocks) to be specified in the block.json file under the "acf" object, accessible from $block['template'].
Provides additional helpful variables to the render.php (and render.twig), as well as renames attributes to block to be more consistent with the PHP template.
Summary
This PR contains changes made to the ACF Blocks Toolkit plugin during the development of ACF Form Blocks plugin.
Summary of Changes
block_attrs()
to be cleaner and more consistentblock.json
file under the"acf"
object, accessible from$block['template']
.render.php
(andrender.twig
), as well as renamesattributes
toblock
to be more consistent with the PHP template.int $post_id
WP_Block $wp_block
array|bool $context
(usually array)bool $is_ajax_render
Issues