the_title_rss filter-hookWP 1.2.0

Filters the post title for use in a feed.

Usage

add_filter( 'the_title_rss', 'wp_kama_the_title_rss_filter' );

/**
 * Function for `the_title_rss` filter-hook.
 * 
 * @param string $title The current post title.
 *
 * @return string
 */
function wp_kama_the_title_rss_filter( $title ){

	// filter...
	return $title;
}
$title(string)
The current post title.

Changelog

Since 1.2.0 Introduced.

Where the hook is called

get_the_title_rss()
the_title_rss
wp-includes/feed.php 166
return apply_filters( 'the_title_rss', $title );
wp-includes/feed-rss2-comments.php 84
$title = apply_filters( 'the_title_rss', $title );
wp-includes/feed-atom-comments.php 81
$title = apply_filters( 'the_title_rss', $title );

Where the hook is used in WordPress

wp-includes/default-filters.php 247
add_filter( 'the_title_rss', 'strip_tags' );
wp-includes/default-filters.php 248
add_filter( 'the_title_rss', 'ent2ncr', 8 );
wp-includes/default-filters.php 249
add_filter( 'the_title_rss', 'esc_html' );