apply_filters( “get_the_author_{$field}”, string $value, int $user_id, int|false $original_user_id )

In this article

Filters the value of the requested user metadata.

Description

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

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.

Source

return apply_filters( "get_the_author_{$field}", $value, $user_id, $original_user_id );

Changelog

VersionDescription
4.3.0The $original_user_id parameter was added.
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.