wpseek.com
WordPress开发者和主题制作者的搜索引擎



the_author › WordPress过滤钩子

Since2.9.0
已弃用n/a
apply_filters( 'the_author', is_object( $authordata )
参数:
  • (string) $display_name The author's display name.
    Required: Yes
定义在:
文档:

Filters the display name of the current post's author.





源码

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