bloginfo_rss

Display RSS container for the bloginfo function.

Description

bloginfo_rss( (string) $show = '' ); 

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.

Parameters (1)

0. $show — Optional. (string) => ''
See get_bloginfo() for possible values.

Usage

  1. if ( !function_exists( 'bloginfo_rss' ) ) { 
  2. require_once ABSPATH . WPINC . '/feed.php'; 
  3.  
  4. // See get_bloginfo() for possible values. 
  5. $show = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bloginfo_rss($show); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/feed.php  
  1. function bloginfo_rss($show = '') { 
  2. /** 
  3. * Filters the bloginfo for display in RSS feeds. 
  4. * @since 2.1.0 
  5. * @see get_bloginfo() 
  6. * @param string $rss_container RSS container for the blog information. 
  7. * @param string $show The type of blog information to retrieve. 
  8. */ 
  9. echo apply_filters( 'bloginfo_rss', get_bloginfo_rss( $show ), $show );