How to allow core Gutenberg blocks selection only when you are inside a custom inner block
You will need to filter the template for the post type: add_action( ‘init’, ‘setup_template’ ); function setup_template() { $post_object = get_post_type_object( ‘post’ ); $post_object->template = [ [ ‘your/custom/block’ ] ]; $post_object->template_lock = ‘all’; } This will pre-populate the post with a single instance of your custom block and lock it from being changed. By locking … Read more