get_bloginfo_rss
Filters the bloginfo for use in RSS feeds.
Usage
add_filter( 'get_bloginfo_rss', 'wp_kama_get_bloginfo_rss_filter', 10, 2 );
/**
* Function for `get_bloginfo_rss` filter-hook.
*
* @param string $info Converted string value of the blog information.
* @param string $show The type of blog information to retrieve.
*
* @return string
*/
function wp_kama_get_bloginfo_rss_filter( $info, $show ){
// filter...
return $info;
}
- $info(string)
- Converted string value of the blog information.
- $show(string)
- The type of blog information to retrieve.
Changelog
| Since 2.2.0 | Introduced. |
Where the hook is called
get_bloginfo_rss
wp-includes/feed.php 40
return apply_filters( 'get_bloginfo_rss', convert_chars( $info ), $show );