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

---

# comment_author_url_link( string $link_text = '', string $before = '', string $after = '', int|WP_Comment $comment )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/comment_author_url_link/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/comment_author_url_link/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/comment_author_url_link/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/comment_author_url_link/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/functions/comment_author_url_link/?output_format=md#user-contributed-notes)

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

Displays the HTML link of the URL of the author of the current comment.

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

 `$link_text`stringoptional

Text to display instead of the comment author’s email address.

Default:`''`

`$before`stringoptional

Text or HTML to display before the email link.

Default:`''`

`$after`stringoptional

Text or HTML to display after the email link.

Default:`''`

`$comment`int|[WP_Comment](https://developer.wordpress.org/reference/classes/wp_comment/)
optional

Comment ID or [WP_Comment](https://developer.wordpress.org/reference/classes/wp_comment/)
object.
 Default is the current comment.

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

    ```php
    function comment_author_url_link( $link_text = '', $before = '', $after = '', $comment = 0 ) {
    	echo get_comment_author_url_link( $link_text, $before, $after, $comment );
    }
    ```

[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#L475)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/comment-template.php#L475-L477)

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

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

Retrieves the HTML link of the URL of the author of the current comment.

  |

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

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

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/functions/comment_author_url_link/?output_format=md#user-contributed-notes)󠁿

 1.   [Skip to note 3 content](https://developer.wordpress.org/reference/functions/comment_author_url_link/?output_format=md#comment-content-1438)
 2.    [Codex](https://profiles.wordpress.org/codex/)  [  10 years ago  ](https://developer.wordpress.org/reference/functions/comment_author_url_link/#comment-1438)
 3.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fcomment_author_url_link%2F%23comment-1438)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fcomment_author_url_link%2F%23comment-1438)
 4.  **Default Usage**
 5.      ```php
         web site: <?php comment_author_url_link(); ?><br />
         ```
     
 6.   [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fcomment_author_url_link%2F%3Freplytocom%3D1438%23feedback-editor-1438)
 7.   [Skip to note 4 content](https://developer.wordpress.org/reference/functions/comment_author_url_link/?output_format=md#comment-content-1439)
 8.    [Codex](https://profiles.wordpress.org/codex/)  [  10 years ago  ](https://developer.wordpress.org/reference/functions/comment_author_url_link/#comment-1439)
 9.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fcomment_author_url_link%2F%23comment-1439)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fcomment_author_url_link%2F%23comment-1439)
 10. **Link Text and Styling**
 11. Displays comment author’s URL as text string Visit Site of Comment Author and 
     adds bullets before and after the link to style it.
 12.     ```php
         <?php comment_author_url_link('Visit Site of Comment Author', ' &bull; ', ' &bull; '); ?>
         ```
     
 13. `• Visit Site of Comment Author • `
 14.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fcomment_author_url_link%2F%3Freplytocom%3D1439%23feedback-editor-1439)

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