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.
Parameters
- $author_meta
(string)The value of the metadata.
- $user_id
(int|false)The user ID.
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |