Keep Jetpacks Markdown Block from Being Filtered Out in get_the_excerpt

function allowed_blocks($allowed_inner_blocks){
  $allowed_inner_blocks[] = 'jetpack/markdown';

  return $allowed_inner_blocks;
}
add_filter('excerpt_allowed_blocks', __NAMESPACE__ . '\\allowed_blocks');

Leave a Reply

Your email address will not be published. Required fields are marked *