author_link WordPress Filter Hook
The author_link hook allows you to change the way the author's name is displayed on your Wordpress site. This can be useful if you want to display the author's name in a different way, or if you want to link to the author's website instead of their Wordpress profile.
apply_filters( 'author_link', string $link , int $author_id , string $author_nicename ) #
Filters the URL to the author’s page.
Parameters
- $link
(string)The URL to the author's page.
- $author_id
(int)The author's ID.
- $author_nicename
(string)The author's nice name.
Source
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |