Filter hook 'get_bloginfo_rss'

in WP Core File wp-includes/feed.php at line 40

View Source

get_bloginfo_rss

Filter Hook
Description
Filters the bloginfo for use in RSS feeds.

Hook Information

File Location wp-includes/feed.php View on GitHub
Hook Type Filter
Line Number 40

Hook Parameters

Type Name Description
string $info Converted string value of the blog information.
string $show The type of blog information to retrieve.

Usage Examples

Basic Usage
<?php
// Hook into get_bloginfo_rss
add_filter('get_bloginfo_rss', 'my_custom_filter', 10, 2);

function my_custom_filter($info, $show) {
    // Your custom filtering logic here
    return $info;
}

Source Code Context

wp-includes/feed.php:40 - How this hook is used in WordPress core
<?php
  35  	 * @see get_bloginfo()
  36  	 *
  37  	 * @param string $info Converted string value of the blog information.
  38  	 * @param string $show The type of blog information to retrieve.
  39  	 */
  40  	return apply_filters( 'get_bloginfo_rss', convert_chars( $info ), $show );
  41  }
  42  
  43  /**
  44   * Displays RSS container for the bloginfo function.
  45   *

PHP Documentation

<?php
/**
	 * 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.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/feed.php
Related Hooks

Related hooks will be displayed here in future updates.