As of Yoast SEO 8.2, we've added our first two structured data blocks: The FAQ block and the How-To block.
Currently, the following blocks are available within Yoast SEO
Although WordPress allows you to filter out Blocks by utilizing the
allowed_block_types filter, this filter contains some limitations.
wp_enqueue_script method in your own plugin or theme (i.e.
functions.php), as follows:
Let's say that you want to only load the FAQ block out of the list of Yoast structured data blocks, and thus want to filter out the How-To block:
Inverting the logic of the if-statement (i.e. negating
hiddenBlocks.includes( block.name )), will allow you to limit what blocks you do want to be loaded.