the_author_{$field}

过滤钩子


apply_filters( "the_author_{$field}", $author_meta, $user_id )
参数
  • (string)
    $author_meta
    The value of the metadata.
    Required:
  • (int|false)
    $user_id
    The user ID.
    Required:
定义位置
  • wp-includes/author-template.php
    , line 216
引入
2.8.0
弃用

过滤所请求的用户元数据的值。

过滤器的名称是动态的,取决于该函数的$field参数。

echo apply_filters( "the_author_{$field}", $author_meta, $user_id );