comment_max_links_url

comment_max_links_url

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('comment_max_links_url') is found 1 times:

  • /wp-includes/comment.php line 65
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    * @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.
     */
    $num_links = apply_filters( 'comment_max_links_url', $num_links, $url, $comment );
     
    /*
     * If the number of links in the comment exceeds the allowed amount,
     * fail the check by returning false.
     */
    if ( $num_links >= $max_links ) {