comment_author_rss
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 | Введена. |
Где вызывается хук
comment_author_rss
wp-includes/feed.php 339
return apply_filters( 'comment_author_rss', get_comment_author() );
Где используется хук в WordPress
wp-includes/default-filters.php 258
add_filter( 'comment_author_rss', 'ent2ncr', 8 );