// If $area is not allowed, set it back to the uncategorized default.
if ( !
$area_definition ) { $area = WP_TEMPLATE_PART_AREA_UNCATEGORIZED;
} // Run through the actions that are typically taken on the_content.
$content =
shortcode_unautop( $content );
$content =
do_shortcode( $content );
$seen_ids[ $template_part_id ] = true;
$content =
do_blocks( $content );
unset( $seen_ids[ $template_part_id ] );
$content =
wptexturize( $content );
$content =
convert_smilies( $content );
$content =
wp_filter_content_tags( $content, "template_part_{
$area}"
);
// Handle embeds for block template parts.
global $wp_embed;
$content =
$wp_embed->
autoembed( $content );
if ( empty( $attributes['tagName'
] ) ) { $area_tag = 'div';