Filter hook 'bloginfo_rss'

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

View Source

bloginfo_rss

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

Hook Information

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

Hook Parameters

Type Name Description
string $rss_container RSS container for the blog information.
string $show The type of blog information to retrieve.

Usage Examples

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

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

Source Code Context

wp-includes/feed.php:67 - How this hook is used in WordPress core
<?php
  62  	 * @see get_bloginfo()
  63  	 *
  64  	 * @param string $rss_container RSS container for the blog information.
  65  	 * @param string $show          The type of blog information to retrieve.
  66  	 */
  67  	echo apply_filters( 'bloginfo_rss', get_bloginfo_rss( $show ), $show );
  68  }
  69  
  70  /**
  71   * Retrieves the default feed.
  72   *

PHP Documentation

<?php
/**
	 * Filters the bloginfo for display in RSS feeds.
	 *
	 * @since 2.1.0
	 *
	 * @see get_bloginfo()
	 *
	 * @param string $rss_container RSS container for 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.