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.


Top ↑

Source

File: wp-includes/author-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.