apply_filters( ‘author_link’, string $link, int $author_id, string $author_nicename )

Filters the URL to the author’s page.

Parameters

$linkstring
The URL to the author’s page.
$author_idint
The author’s ID.
$author_nicenamestring
The author’s nice name.

Source

$link = apply_filters( 'author_link', $link, $author_id, $author_nicename );

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

  1. Skip to note 2 content

    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.

    add_filter( 'author_link', 'modify_author_link', 10, 1 ); 	 	 
    function modify_author_link( $link ) {	 	 
        $link = 'http://example.com/';
    return $link;
    }

You must log in before being able to contribute a note or feedback.