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
$link = apply_filters( 'author_link', $link, $author_id, $author_nicename );
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
Example migrated from Codex:
If you add the following to the
functions.php
file of your child themes, you can modify the author link for all posts or using conditional tags.