Team Member only allow Team Member Block

add_filter(‘allowed_block_types_all’, ‘enable_blocks_for_custom_post_type’, 10, 2); function enable_blocks_for_custom_post_type($allowed_block_types, $block_editor_context) { if ($block_editor_context->post->post_type === ‘team-member’) { return array(‘acf/team-member’, ‘core/post-featured-image’); } return $allowed_block_types;}Continue reading