W3cubDocs

/WordPress

apply_filters( ‘the_author’, string $display_name )

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

Parameters

$display_namestring
The author’s display name.

Source

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

Changelog

Version Description
2.9.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_author