comment_max_links_url WordPress Filter Hook
The comment_max_links_url Wordpress hook allows you to modify the maximum number of links that are allowed in a comment URL. This can be useful if you want to increase or decrease the number of links allowed in a comment, or if you want to make sure that all links in a comment are valid.
apply_filters( 'comment_max_links_url', int $num_links , string $url , string $comment ) #
Filters the number of links found in a comment.
Parameters
- $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.
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
4.7.0 | Added the $comment parameter. |
3.0.0 | Introduced. |