the_embed_site_title
Prints the necessary markup for the site title in an embed template.
Description
the_embed_site_title();
Usage
if ( !function_exists( 'the_embed_site_title' ) ) { require_once ABSPATH . WPINC . '/embed.php'; } // NOTICE! Understand what this does before running. $result = the_embed_site_title();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/embed.php
- function the_embed_site_title() {
- $site_title = sprintf(
- '<a href="%s" target="_top"><img src="%s" srcset="%s 2x" width="32" height="32" alt="" class="wp-embed-site-icon"/><span>%s</span></a>',
- esc_html( get_bloginfo( 'name' ) )
- );
- $site_title = '<div class="wp-embed-site-title">' . $site_title . '</div>';
- /**
- * Filters the site title HTML in the embed footer.
- *
- * @since 4.4.0
- *
- * @param string $site_title The site title HTML.
- */
- echo apply_filters( 'embed_site_title_html', $site_title );
- }