extend Meta Box / Document Panel
extend Meta Box / Document Panel
extend Meta Box / Document Panel
Hooking a callback into the code within a Gutenberg block
Gutenberg reusable blocks – is it possible to customise an instance?
Gutenberg Blocks doesn’t render correctly when using do_blocks
How to use getBlockIndex
No fast and easy solution for you. Read discussion here and here. You may try to write some rather sophisticated Gutenberg code to implement this feature, or maybe you could implement some save_post hook to check saved block structure with parse_blocks and do something if they don’t match your required structure. For example, prevent post … Read more
The Block Editor: Disable “Color settings” in the specific block
Remove left alignment option in core/image block
I’ve modified serialize_block a bit: function serialize_block_template( $block ) { $block_content=””; if (isset($block[2])) { $index = 0; foreach ( $block[2] as $chunk ) { $block_content .= is_string( $chunk ) ? $chunk : serialize_block_template( $block[2][ $index++ ] ); } } return get_comment_delimited_block_content( $block[0], $block[1], $block_content ); } Disclaimer: could have some bugs, only tested it for … Read more
Using Primary Color in Plugin Block