comment_max_links_url filter-hook . WP 3.0.0
Filters the number of links found in a comment.
Usage
add_filter( 'comment_max_links_url', 'filter_function_name_9984', 10, 3 ); function filter_function_name_9984( $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
comment_max_links_url
wp-includes/comment.php 65
$num_links = apply_filters( 'comment_max_links_url', $num_links, $url, $comment );