comment_author_rss хук-фильтрWP 1.5.0

Filters the current comment author for use in a feed.

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

add_filter( 'comment_author_rss', 'wp_kama_comment_author_rss_filter' );

/**
 * Function for `comment_author_rss` filter-hook.
 * 
 * @param string $comment_author The current comment author.
 *
 * @return string
 */
function wp_kama_comment_author_rss_filter( $comment_author ){

	// filter...
	return $comment_author;
}
$comment_author(строка)
The current comment author.

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

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

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

get_comment_author_rss()
comment_author_rss
wp-includes/feed.php 337
return apply_filters( 'comment_author_rss', get_comment_author() );

Где используется хук в WordPress

wp-includes/default-filters.php 255
add_filter( 'comment_author_rss', 'ent2ncr', 8 );