the_author

SummerySummery

Display the name of the author of the current post.

Syntax

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

DescriptionDescription

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.

ParametersParameters

$deprecated

(string) (Optional) Deprecated.

Default value: ''

$deprecated_echo

(bool) (Optional) Deprecated. Use get_the_author(). Echo the string or return it.

Default value: true

ReturnReturn

(string|null) The author's display name, from get_the_author().

SourceSource

File: wp-includes/author-template.php


			

ChangelogChangelog

Changelog
Version Description
0.71 Introduced.

See alsoSee also

Scroll to Top