embed_site_title_html
Filter HookDescription
Filters the site title HTML in the embed footer.Hook Information
File Location |
wp-includes/embed.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1238 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$site_title
|
The site title HTML. |
Usage Examples
Basic Usage
<?php
// Hook into embed_site_title_html
add_filter('embed_site_title_html', 'my_custom_filter', 10, 1);
function my_custom_filter($site_title) {
// Your custom filtering logic here
return $site_title;
}
Source Code Context
wp-includes/embed.php:1238
- How this hook is used in WordPress core
<?php
1233 *
1234 * @since 4.4.0
1235 *
1236 * @param string $site_title The site title HTML.
1237 */
1238 echo apply_filters( 'embed_site_title_html', $site_title );
1239 }
1240
1241 /**
1242 * Filters the oEmbed result before any HTTP requests are made.
1243 *
PHP Documentation
<?php
/**
* Filters the site title HTML in the embed footer.
*
* @since 4.4.0
*
* @param string $site_title The site title HTML.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/embed.php
Related Hooks
Related hooks will be displayed here in future updates.