the_author

过滤钩子


apply_filters( 'the_author', is_object( $authordata )
参数
  • (string|null)
    $display_name
    The author’s display name.
    Required:
定义位置
  • wp-includes/author-template.php
    , line 37
引入
2.9.0
弃用

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

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