the_title_rss
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
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 238
add_filter( 'the_title_rss', 'strip_tags' );
wp-includes/default-filters.php 239
add_filter( 'the_title_rss', 'ent2ncr', 8 );
wp-includes/default-filters.php 240
add_filter( 'the_title_rss', 'esc_html' );