get_comment_author_url filter-hookWP 1.5.0

Filters the comment author's URL.

Usage

add_filter( 'get_comment_author_url', 'wp_kama_get_comment_author_url_filter', 10, 3 );

/**
 * Function for `get_comment_author_url` filter-hook.
 * 
 * @param string          $url        The comment author's URL, or an empty string.
 * @param string|int      $comment_ID The comment ID as a numeric string, or 0 if not found.
 * @param WP_Comment|null $comment    The comment object, or null if not found.
 *
 * @return string
 */
function wp_kama_get_comment_author_url_filter( $url, $comment_ID, $comment ){

	// filter...
	return $url;
}
$url(string)
The comment author's URL, or an empty string.
$comment_ID(string|int)
The comment ID as a numeric string, or 0 if not found.
$comment(WP_Comment|null)
The comment object, or null if not found.

Changelog

Since 1.5.0 Introduced.
Since 4.1.0 The $comment_ID and $comment parameters were added.

Where the hook is called

get_comment_author_url()
get_comment_author_url
wp-includes/comment-template.php 328
return apply_filters( 'get_comment_author_url', $url, $id, $comment );

Where the hook is used in WordPress

Usage not found.