Title: the_author_link
Published: May 25, 2022
Last modified: May 20, 2026

---

# apply_filters( ‘the_author_link’, string $link, string $author_url, WP_User $authordata )

## In this article

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

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

Filters the author URL link HTML.

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

 `$link`string

The default rendered author HTML link.

`$author_url`string

Author’s URL.

`$authordata`[WP_User](https://developer.wordpress.org/reference/classes/wp_user/)

Author user data.

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

    ```php
    return apply_filters( 'the_author_link', $link, $author_url, $authordata );
    ```

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

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

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

Retrieves either author’s link or author’s name.

  |

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

| Version | Description | 
| [6.0.0](https://developer.wordpress.org/reference/since/6.0.0/) | Introduced. |

## User Contributed Notes

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