Title: comment_max_links_url
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘comment_max_links_url’, int $num_links, string $url, string $comment )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/comment_max_links_url/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/comment_max_links_url/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/comment_max_links_url/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/comment_max_links_url/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/comment_max_links_url/?output_format=md#wp--skip-link--target)

Filters the number of links found in a comment.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/comment_max_links_url/?output_format=md#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](https://developer.wordpress.org/reference/hooks/comment_max_links_url/?output_format=md#source)󠁿

    ```php
    $num_links = apply_filters( 'comment_max_links_url', $num_links, $url, $comment );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/comment.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/comment.php#L65)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/comment.php#L65-L65)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/comment_max_links_url/?output_format=md#related)󠁿

| Used by | Description | 
| [check_comment()](https://developer.wordpress.org/reference/functions/check_comment/)`wp-includes/comment.php` |

Checks whether a comment passes internal checks to be allowed to add.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/comment_max_links_url/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.7.0](https://developer.wordpress.org/reference/since/4.7.0/) | Added the `$comment` parameter. | 
| [3.0.0](https://developer.wordpress.org/reference/since/3.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcomment_max_links_url%2F)
before being able to contribute a note or feedback.