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          $comment_author_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( $comment_author_url, $comment_id, $comment ){

	// filter...
	return $comment_author_url;
}
$comment_author_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 369
return apply_filters( 'get_comment_author_url', $comment_author_url, $comment_id, $comment );

Where the hook is used in WordPress

Usage not found.