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:
定义位置
相关勾子
get_the_author_fieldthe_author_linkthe_authorthe_author_posts_linkauthor_email
相关方法
the_author_idthe_author_emailthe_author_aimthe_author_urlthe_author_yimthe_author_icq
引入
2.8.0
弃用
-

the_author_{$field}是一个模板标签,允许你从作者的个人资料中显示一个特定的字段,其中$field是你想显示的字段的名称。例如,the_author_email将显示作者的电子邮件地址。

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

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

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

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-06 06:33:11

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: