the_author

过滤钩子
apply_filters( 'the_author', is_object( $authordata )
参数
  • (string|null) $display_name The author's display name.
    Required:
定义位置
相关勾子
the_author_linkatom_authorthe_categorythe_generatorthe_editor
相关方法
the_authorthe_author_idthe_author_msnthe_author_aimthe_author_icqthe_author_yim
引入
2.9.0
弃用
-

the_author是一个模板标签,用于显示一个文章的作者的名字。它可以用来在网站的不同地方显示作者的名字,例如在文章的元数据或作者简介部分。

过滤当前文章作者的显示名称。

return apply_filters( 'the_author', is_object( $authordata ) ? $authordata->display_name : null );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 16:32:56

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

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

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