Hey,
I am only allowing one block on my page using this code:
add_filter('allowed_block_types', 'sp_allowed_block_types', 10, 2);
function sp_allowed_block_types($allowed_blocks, $post)
{
if ($post->post_type === 'page' || $post->post_type === 'post') {
$allowed_blocks = array(
'sp/block',
);
}
return $allowed_blocks;
}
It doesn't really make sense to allow the modal in this case, the appender icon should instead insert the only block that is available.

Hey,
I am only allowing one block on my page using this code:
It doesn't really make sense to allow the modal in this case, the appender icon should instead insert the only block that is available.