the_author_{$field} WordPress Filter Hook

The the_author_{$field} hook is a versatile hook that can be used to display a wide variety of author-related information on your website. This hook can be used to display the author's name, avatar, bio, website, and social media links. Additionally, this hook can be used to display the author's latest post, or a list of the author's most recent posts.

apply_filters( "the_author_{$field}", string $author_meta, int|false $user_id ) #

Filters the value of the requested user metadata.


Description

The filter name is dynamic and depends on the $field parameter of the function.


Top ↑

Parameters

$author_meta

(string)The value of the metadata.

$user_id

(int|false)The user ID.


Top ↑

Source

File: wp-includes/author-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.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.