apply_filters( “get_user_option_{$option}”, mixed $result, string $option, WP_User $user )

In this article

Filters a specific user option value.

Description

The dynamic portion of the hook name, $option, refers to the user option name.

Parameters

$resultmixed
Value for the user’s option.
$optionstring
Name of the option being retrieved.
$userWP_User
WP_User object of the user whose option is being retrieved.

Source

return apply_filters( "get_user_option_{$option}", $result, $option, $user );

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

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