W3cubDocs

/WordPress

apply_filters( ‘get_comment_author_link’, string $comment_author_link, string $comment_author, string $comment_id )

Filters the comment author’s link for display.

Parameters

$comment_author_linkstring
The HTML-formatted comment author link.
Empty for an invalid URL.
$comment_authorstring
The comment author’s username.
$comment_idstring
The comment ID as a numeric string.

More Information

Both get_comment_author_url() and get_comment_author() rely on get_comment(), which falls back to the global comment variable if the $comment_ID argument is empty.

Source

return apply_filters( 'get_comment_author_link', $comment_author_link, $comment_author, $comment_id );

Changelog

Version Description
4.1.0 The $comment_author and $comment_id parameters were added.
1.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_comment_author_link