Title: the_embed_site_title
Published: April 12, 2016
Last modified: May 20, 2026

---

# the_embed_site_title()

## In this article

 * [Source](https://developer.wordpress.org/reference/functions/the_embed_site_title/?output_format=md#source)
 * [Hooks](https://developer.wordpress.org/reference/functions/the_embed_site_title/?output_format=md#hooks)
 * [Related](https://developer.wordpress.org/reference/functions/the_embed_site_title/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/the_embed_site_title/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/the_embed_site_title/?output_format=md#wp--skip-link--target)

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

## 󠀁[Source](https://developer.wordpress.org/reference/functions/the_embed_site_title/?output_format=md#source)󠁿

    ```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_url( home_url() ),
    		esc_url( get_site_icon_url( 32, includes_url( 'images/w-logo-blue.png' ) ) ),
    		esc_url( get_site_icon_url( 64, includes_url( 'images/w-logo-blue.png' ) ) ),
    		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 );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/embed.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/embed.php#L1232)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/embed.php#L1232-L1251)

## 󠀁[Hooks](https://developer.wordpress.org/reference/functions/the_embed_site_title/?output_format=md#hooks)󠁿

 [apply_filters( ’embed_site_title_html’, string $site_title )](https://developer.wordpress.org/reference/hooks/embed_site_title_html/)

Filters the site title HTML in the embed footer.

## 󠀁[Related](https://developer.wordpress.org/reference/functions/the_embed_site_title/?output_format=md#related)󠁿

| Uses | Description | 
| [get_site_icon_url()](https://developer.wordpress.org/reference/functions/get_site_icon_url/)`wp-includes/general-template.php` |

Returns the Site Icon URL.

  | 
| [includes_url()](https://developer.wordpress.org/reference/functions/includes_url/)`wp-includes/link-template.php` |

Retrieves the URL to the includes directory.

  | 
| [esc_url()](https://developer.wordpress.org/reference/functions/esc_url/)`wp-includes/formatting.php` |

Checks and cleans a URL.

  | 
| [esc_html()](https://developer.wordpress.org/reference/functions/esc_html/)`wp-includes/formatting.php` |

Escaping for HTML blocks.

  | 
| [get_bloginfo()](https://developer.wordpress.org/reference/functions/get_bloginfo/)`wp-includes/general-template.php` |

Retrieves information about the current site.

  | 
| [home_url()](https://developer.wordpress.org/reference/functions/home_url/)`wp-includes/link-template.php` |

Retrieves the URL for the current site where the front end is accessible.

  | 
| [apply_filters()](https://developer.wordpress.org/reference/functions/apply_filters/)`wp-includes/plugin.php` |

Calls the callback functions that have been added to a filter hook.

  |

[Show 5 more](https://developer.wordpress.org/reference/functions/the_embed_site_title/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/the_embed_site_title/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/the_embed_site_title/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.5.0](https://developer.wordpress.org/reference/since/4.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fthe_embed_site_title%2F)
before being able to contribute a note or feedback.