the_author


the_author ( $deprecated = '', $deprecated_echo = true )

Parameters:
  • (string) deprecated Deprecated.
  • (bool) deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it.
Links:
See:
Returns:
  • (string) The author's display name, from get_the_author().
Defined at:

Description

Displays the name of the author of the current post.The behavior of this function is based off of old functionality predating get_the_author(). This function is not deprecated, but is designed to echo the value from get_the_author() and as an result of any old theme that might still use the old behavior will also pass the value from get_the_author(). The normal, expected behavior of this function is to echo the author and not return it. However, backward compatibility has to be maintained.

Related Functions

the_author_id, get_the_author, the_author_aim, the_author_icq, the_author_msn

Top Google Results

User discussions

wpseek mobile