W3cubDocs

/WordPress

apply_filters( ‘get_comment_author_url’, string $comment_author_url, string|int $comment_id, WP_Comment|null $comment )

Filters the comment author’s URL.

Parameters

$comment_author_urlstring
The comment author’s URL, or an empty string.
$comment_idstring|int
The comment ID as a numeric string, or 0 if not found.
$commentWP_Comment|null
The comment object, or null if not found.

Source

return apply_filters( 'get_comment_author_url', $comment_author_url, $comment_id, $comment );

Changelog

Version Description
4.1.0 The $comment_id and $comment 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_url