the_embed_site_title

Prints the necessary markup for the site title in an embed template.

Description

the_embed_site_title(); 

Usage

  1. if ( !function_exists( 'the_embed_site_title' ) ) { 
  2. require_once ABSPATH . WPINC . '/embed.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = the_embed_site_title(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/embed.php  
  1. function the_embed_site_title() { 
  2. $site_title = sprintf( 
  3. '<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>',  
  4. esc_url( home_url() ),  
  5. esc_url( get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) ) ),  
  6. esc_url( get_site_icon_url( 64, admin_url( 'images/w-logo-blue.png' ) ) ),  
  7. esc_html( get_bloginfo( 'name' ) ) 
  8. ); 
  9.  
  10. $site_title = '<div class="wp-embed-site-title">' . $site_title . '</div>'; 
  11.  
  12. /** 
  13. * Filters the site title HTML in the embed footer. 
  14. * @since 4.4.0 
  15. * @param string $site_title The site title HTML. 
  16. */ 
  17. echo apply_filters( 'embed_site_title_html', $site_title );