if ( empty( $user ) ) { $user =
get_current_user_id();
} $user =
get_userdata( $user );
if ( !
$user ) { return false;
} $prefix =
$wpdb->
get_blog_prefix();
if ( $user->
has_prop( $prefix .
$option ) ) { // Blog-specific.
$result =
$user->
get( $prefix .
$option );
} elseif ( $user->
has_prop( $option ) ) { // User-specific and cross-blog.
$result =
$user->
get( $option );
} else { $result = false;
} /**
* Filters a specific user option value.
*
* The dynamic portion of the hook name, `$option`, refers to the user option name.
*
* @since 2.5.0
*
* @param mixed $result Value for the user's option.
* @param string $option Name of the option being retrieved.
* @param WP_User $user WP_User object of the user whose option is being retrieved.
*/