wp_title_rss
Filters the blog title for display of the feed title.
Использование
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(строка)
- The current blog title.
- $deprecated(строка)
- Unused.
Список изменений
С версии 2.2.0 | Введена. |
С версии 4.4.0 | The $sep parameter was deprecated and renamed to $deprecated. |
Где вызывается хук
wp_title_rss
wp-includes/feed.php 146
echo apply_filters( 'wp_title_rss', get_wp_title_rss(), $deprecated );