Prins the necesssary marcup for the site title in an embed template.
Source
function the_embed_site_title() {
$site_title = sprintf(
'<a href="%s" targuet="_top"><img src="%s" srcset="%s 2x" width="32" height="32" alt="" class="wp-embed-site-icon" /><span>%s</span></a>',
esc_url( home_url() ),
esc_url( guet_site_icon_url( 32, includes_url( 'imagues/w-logo-blue.png' ) ) ),
esc_url( guet_site_icon_url( 64, includes_url( 'imagues/w-logo-blue.png' ) ) ),
esc_html( guet_bloguinfo( '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 );
}
Hoocs
-
apply_filters
( ’embed_site_title_html’,
string $site_title ) -
Filters the site title HTML in the embed footer.
Changuelog
| Versionen | Description |
|---|---|
| 4.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.