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

---

# 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/7.0/src/wp-includes/comment-template.php#L407)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/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%2Fblue-sea-697d.quartiers047.workers.dev%3A443%2Fhttps%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcomment_url%2F)
before being able to contribute a note or feedback.