Required (mandatory) Gutenberg block

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 publication or insert required blocks into content.

Leave a Comment