On this page
get_bloginfo_rss( string $show = '' ): string
Retrieves RSS container for the bloginfo function.
Description
You can retrieve anything that you can using the get_bloginfo() function.
Everything will be stripped of tags and characters converted, when the values are retrieved for use in the feeds.
See also
- get_bloginfo() : For the list of possible values to display.
Parameters
$showstring Optional-
See get_bloginfo() for possible values.
More Arguments from get_bloginfo( ... $show )
Site info to retrieve. Default empty (site name).Default:
''
Return
string
Source
File: wp-includes/feed.php. View all references
function get_bloginfo_rss( $show = '' ) {
$info = strip_tags( get_bloginfo( $show ) );
/**
* Filters the bloginfo for use in RSS feeds.
*
* @since 2.2.0
*
* @see convert_chars()
* @see get_bloginfo()
*
* @param string $info Converted string value of the blog information.
* @param string $show The type of blog information to retrieve.
*/
return apply_filters( 'get_bloginfo_rss', convert_chars( $info ), $show );
}
Hooks
- apply_filters( 'get_bloginfo_rss',
string $info ,string $show ) -
Filters the bloginfo for use in RSS feeds.
Related
Uses
| Uses | Description |
|---|---|
| convert_chars() wp-includes/formatting.php | Converts lone & characters into |
| get_bloginfo() wp-includes/general-template.php | Retrieves information about the current site. |
| apply_filters() wp-includes/plugin.php | Calls the callback functions that have been added to a filter hook. |
Used By
| Used By | Description |
|---|---|
| rss2_site_icon() wp-includes/feed.php | Displays Site Icon in RSS2. |
| wxr_site_url() wp-admin/includes/export.php | Returns the URL of the site. |
| get_the_generator() wp-includes/general-template.php | Creates the generator XML or Comment for RSS, ATOM, etc. |
| get_the_category_rss() wp-includes/feed.php | Retrieves all of the post categories, formatted for use in feeds. |
| bloginfo_rss() wp-includes/feed.php | Displays RSS container for the bloginfo function. |
Changelog
| Version | Description |
|---|---|
| 1.5.1 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_bloginfo_rss