convert_smilies example

    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';
        if ( $area_definition && isset( $area_definition['area_tag'] ) ) {
            $area_tag = $area_definition['area_tag'];
        }
        
return '<h1>' . esc_html__( 'No matching template found' ) . '</h1>';
        }
        return;
    }

    $content = $wp_embed->run_shortcode( $_wp_current_template_content );
    $content = $wp_embed->autoembed( $content );
    $content = shortcode_unautop( $content );
    $content = do_shortcode( $content );
    $content = do_blocks( $content );
    $content = wptexturize( $content );
    $content = convert_smilies( $content );
    $content = wp_filter_content_tags( $content, 'template' );
    $content = str_replace( ']]>', ']]&gt;', $content );

    // Wrap block template in .wp-site-blocks to allow for specific descendant styles     // (e.g. `.wp-site-blocks > *`).     return '<div class="wp-site-blocks">' . $content . '</div>';
}

/** * Renders a 'viewport' meta tag. * * This is hooked into {@see 'wp_head'} to decouple its output from the default template canvas. * * @access private * @since 5.8.0 */
Home | Imprint | This part of the site doesn't use cookies.