A WordPress-centric search engine for devs and theme authors



the_author ›

Since2.9.0
Deprecatedn/a
apply_filters( 'the_author', is_object( $authordata )
Parameters:
  • (string) $authordata->display_name The author's display name.
    Required: Yes
Defined at:
Codex:

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





Source

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