On this page
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_metastring-
The value of the metadata.
$user_idint|false-
The user ID.
Source
File: wp-includes/author-template.php. View all references
echo apply_filters( "the_author_{$field}", $author_meta, $user_id );
Related
Used By
| Used By | Description |
|---|---|
| the_author_meta() wp-includes/author-template.php | Outputs the field from the user’s DB object. Defaults to current post’s author. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_author_field