apply_filters( "get_the_author_{$field}", string $value, int $user_id, int|false $original_user_id )
- Since
- 2.8.0, 4.3.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 4.3.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
$valuestring- The value of the metadata.
$user_idint- The user ID for the value.
$original_user_idint|false- The original user ID, as passed to the function.
Where this hook fires · 1
wp-includes/author-template.php:195get_the_author_meta()
Source code
* @since 4.3.0 The `$original_user_id` parameter was added. * * @param string $value The value of the metadata. * @param int $user_id The user ID for the value. * @param int|false $original_user_id The original user ID, as passed to the function. */ return apply_filters( "get_the_author_{$field}", $value, $user_id, $original_user_id );} /** * Outputs the field from the user's DB object. Defaults to current post's author. * * @since 2.8.0Changelog
Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.3.0
The
$original_user_id parameter was added.from the docblock2.8.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 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.