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.


Top ↑

Source

File: wp-includes/comment.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Added the $comment parameter.
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More