get_bloginfo_rss() WordPress Function

The get_bloginfo_rss() function is used to retrieve RSS information about a WordPress site. This function will return an RSS feed for the specified blog info parameter.

get_bloginfo_rss( string $show = '' ) #

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.

Top ↑

See also


Top ↑

Parameters

$show

(string)(Optional)See get_bloginfo() for possible values.

Default value: ''


Top ↑

Return

(string)


Top ↑

Source

File: wp-includes/feed.php

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 );
}


Top ↑

Changelog

Changelog
VersionDescription
1.5.1Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.