the_title_rss хук-фильтрWP 1.2.0

Filters the post title for use in a feed.

Использование

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(строка)
The current post title.

Список изменений

С версии 1.2.0 Введена.

Где вызывается хук

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 );

Где используется хук в 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' );