On this page
apply_filters( 'the_author', string|null $display_name )
Filters the display name of the current post’s author.
Parameters
$display_namestring|null-
The author's display name.
Source
File: wp-includes/author-template.php. View all references
return apply_filters( 'the_author', is_object( $authordata ) ? $authordata->display_name : null );
Related
Used By
| Used By | Description |
|---|---|
| get_the_author() wp-includes/author-template.php | Retrieves the author of the current post. |
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_author