apply_filters( "the_author_{$field}", string $author_meta, int|false $user_id )
- Since
- 2.8.0
Filters the value of the requested user metadata.
Description
The filter name is dynamic and depends on the $field parameter of the function.
Compatibility
- WordPress
- since 2.8.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$author_metastring- The value of the metadata.
$user_idint|false- The user ID.
Where this hook fires · 1
wp-includes/author-template.php:222the_author_meta()
Source code
* * @since 2.8.0 * * @param string $author_meta The value of the metadata. * @param int|false $user_id The user ID. */ echo apply_filters( "the_author_{$field}", $author_meta, $user_id );} /** * Retrieves either author's link or author's name. * * If the author has a home page set, return an HTML link, otherwise just returnChangelog
Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.