get_the_author

Definition:
function get_the_author($deprecated = '') {}

Retrieve the author of the current post.

Parameters

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

}

1783

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:

WordPress.com Logo

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

Facebook photo

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

Connecting to %s

%d bloggers like this: