Title: comment_url
Published: April 25, 2014
Last modified: April 28, 2025

---

# apply_filters( ‘comment_url’, string $comment_author_url, string $comment_id )

## In this article

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

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

Filters the comment author’s URL for display.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/comment_url/?output_format=md#parameters)󠁿

 `$comment_author_url`string

The comment author’s URL.

`$comment_id`string

The comment ID as a numeric string.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/comment_url/?output_format=md#source)󠁿

    ```php
    echo apply_filters( 'comment_url', $comment_author_url, $comment->comment_ID );
    ```

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

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

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

Displays the URL of the author of the current comment, not linked.

  |

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

| Version | Description | 
| [4.1.0](https://developer.wordpress.org/reference/since/4.1.0/) | The `$comment_id` parameter was added. | 
| [1.2.0](https://developer.wordpress.org/reference/since/1.2.0/) | Introduced. |

## User Contributed Notes

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