comment_author_rss filter-hookWP 1.5.0

Filters the current comment author for use in a feed.

Usage

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(string)
The current comment author.

Changelog

Since 1.5.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

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