function get_the_author($deprecated = '') {}

Retrieve the author of the current post.


  • string $deprecated: Deprecated.

Return values

returns:The author’s display name.

Defined filters

  • the_author
    apply_filters('the_author', is_object($authordata)

Source code

function get_the_author($deprecated = '') {

	global $authordata;

	if ( !empty( $deprecated ) )

		_deprecated_argument( __FUNCTION__, '2.1' );

	return apply_filters('the_author', is_object($authordata) ? $authordata->display_name : null);



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: