comment_url WordPress Filter Hook
The comment_url hook allows you to modify the URL that is displayed for a comment. This can be useful if you want to change the way comments are displayed on your site. For example, you could use this hook to display comments from a specific post type or from a specific category.
apply_filters( 'comment_url', string $author_url , string $comment_ID ) #
Filters the comment author’s URL for display.
Parameters
- $author_url
(string)The comment author's URL.
- $comment_ID
(string)The comment ID as a numeric string.
Source
Changelog
Version | Description |
---|---|
4.1.0 | The $comment_ID parameter was added. |
1.2.0 | Introduced. |