Warning: This function has been deprecated. Use get_the_author_meta() instead.
get_the_author_nickname() WordPress Function
The get_the_author_nickname() function is used to get the author's nickname. This is useful for displaying the author's name in a post.
get_the_author_nickname() #
Retrieve the nickname of the author of the current post.
Description
See also
Return
(string) The author's nickname.
Source
File: wp-includes/deprecated.php
function get_the_author_nickname() {
_deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'nickname\')' );
return get_the_author_meta('nickname');
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Use get_the_author_meta() |
| 1.5.0 | Introduced. |