get_the_author_{$field}

过滤钩子


apply_filters( "get_the_author_{$field}", $value, $user_id, $original_user_id )
参数
  • (string)
    $value
    The value of the metadata.
    Required:
  • (int)
    $user_id
    The user ID for the value.
    Required:
  • (int|false)
    $original_user_id
    The original user ID, as passed to the function.
    Required:
定义位置
  • wp-includes/author-template.php
    , line 189
引入
4.3.0
弃用

Filters the value of the requested user metadata.

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

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