Filter hook 'wp_title_rss'

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

View Source

wp_title_rss

Filter Hook
Description
Filters the blog title for display of the feed title.

Hook Information

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

Hook Parameters

Type Name Description
string $wp_title_rss The current blog title.
string $deprecated Unused.

Usage Examples

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

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

Source Code Context

wp-includes/feed.php:146 - How this hook is used in WordPress core
<?php
 141  	 * @see get_wp_title_rss()
 142  	 *
 143  	 * @param string $wp_title_rss The current blog title.
 144  	 * @param string $deprecated   Unused.
 145  	 */
 146  	echo apply_filters( 'wp_title_rss', get_wp_title_rss(), $deprecated );
 147  }
 148  
 149  /**
 150   * Retrieves the current post title for the feed.
 151   *

PHP Documentation

<?php
/**
	 * Filters the blog title for display of the feed title.
	 *
	 * @since 2.2.0
	 * @since 4.4.0 The `$sep` parameter was deprecated and renamed to `$deprecated`.
	 *
	 * @see get_wp_title_rss()
	 *
	 * @param string $wp_title_rss The current blog title.
	 * @param string $deprecated   Unused.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/feed.php
Related Hooks

Related hooks will be displayed here in future updates.