comment_max_links_url filter-hookWP 3.0.0

Filters the number of links found in a comment.

Usage

add_filter( 'comment_max_links_url', 'wp_kama_comment_max_links_url_filter', 10, 3 );

/**
 * Function for `comment_max_links_url` filter-hook.
 * 
 * @param int    $num_links The number of links found.
 * @param string $url       Comment author's URL. Included in allowed links total.
 * @param string $comment   Content of the comment.
 *
 * @return int
 */
function wp_kama_comment_max_links_url_filter( $num_links, $url, $comment ){

	// filter...
	return $num_links;
}
$num_links(int)
The number of links found.
$url(string)
Comment author's URL. Included in allowed links total.
$comment(string)
Content of the comment.

Changelog

Since 3.0.0 Introduced.
Since 4.7.0 Added the $comment parameter.

Where the hook is called

check_comment()
comment_max_links_url
wp-includes/comment.php 65
$num_links = apply_filters( 'comment_max_links_url', $num_links, $url, $comment );

Where the hook is used in WordPress

Usage not found.