wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_author_name › WordPress Function

Desde1.0.0
Obsoleto2.8.0
get_author_name ( $auth_id = false )
Parâmetros:
  • (int) $auth_id The ID of the author.
    Required: No
    Padrão: false
Ver:
Retorna:
  • (string) The author's display name.
Definido em:
Codex:

Retrieve the specified author's preferred display name.



Fonte

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