wp_title_rss
Filters the blog title for display of the feed title.
Usage
add_filter( 'wp_title_rss', 'wp_kama_title_rss_filter', 10, 2 ); /** * Function for `wp_title_rss` filter-hook. * * @param string $wp_title_rss The current blog title. * @param string $deprecated Unused. * * @return string */ function wp_kama_title_rss_filter( $wp_title_rss, $deprecated ){ // filter... return $wp_title_rss; }
- $wp_title_rss(string)
- The current blog title.
- $deprecated(string)
- Unused.
Changelog
Since 2.2.0 | Introduced. |
Since 4.4.0 | The $sep parameter was deprecated and renamed to $deprecated. |
Where the hook is called
wp_title_rss
wp-includes/feed.php 146
echo apply_filters( 'wp_title_rss', get_wp_title_rss(), $deprecated );