get_author_name()
Deprecated from version 2.8.0. It is no longer supported and can be removed in future releases. Use get_the_author_meta() instead.
Retrieve the specified author's preferred display name.
No Hooks.
Return
String
. The author's display name.
Usage
get_author_name( $auth_id );
- $auth_id(int)
- The ID of the author.
Default: false
Notes
Changelog
Since 1.0.0 | Introduced. |
Deprecated since 2.8.0 | Use get_the_author_meta() |
get_author_name() get author name code WP 6.7.1
function get_author_name( $auth_id = false ) { _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'display_name\')' ); return get_the_author_meta('display_name', $auth_id); }