the_author WordPress Filter Hook
The 'the_author' WordPress hook is used to display the author of a post. This hook can be used in conjunction with the 'the_author_meta' hook to display additional information about the author.
apply_filters( 'the_author', string|null $display_name ) #
Filters the display name of the current post’s author.
Parameters
- $display_name
(string|null)The author's display name.
Source
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |