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

Top ↑

See also


Top ↑

Return

(string) The author's nickname.


Top ↑

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');
}


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Use get_the_author_meta()
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More