get_comment_author_link filter-hook . WP 1.5.0
Filters the comment author's link for display.
Usage
add_filter( 'get_comment_author_link', 'filter_function_name_4607', 10, 3 ); function filter_function_name_4607( $return, $author, $comment_ID ){ // filter... return $return; }
- $return(string)
- The HTML-formatted comment author link. Empty for an invalid URL.
- $author(string)
- The comment author's username.
- $comment_ID(int)
- The comment ID.
Changelog
Since 1.5.0 | Introduced. |
Since 4.1.0 | The $author and $comment_ID parameters were added. |
Where the hook is called
get_comment_author_link
wp-includes/comment-template.php 241
return apply_filters( 'get_comment_author_link', $return, $author, $comment->comment_ID );