get_bloginfo_rss

RSS container for the bloginfo function.

Description

(string) get_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.

Returns (string)

Parameters (1)

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

Usage

  1. if ( !function_exists( 'get_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 = get_bloginfo_rss($show); 
  9.  

Defined (1)

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

/wp-includes/feed.php  
  1. function get_bloginfo_rss($show = '') { 
  2. $info = strip_tags(get_bloginfo($show)); 
  3. /** 
  4. * Filters the bloginfo for use in RSS feeds. 
  5. * @since 2.2.0 
  6. * @see convert_chars() 
  7. * @see get_bloginfo() 
  8. * @param string $info Converted string value of the blog information. 
  9. * @param string $show The type of blog information to retrieve. 
  10. */ 
  11. return apply_filters( 'get_bloginfo_rss', convert_chars( $info ), $show );