W3cubDocs

/WordPress

get_the_author_ID()

This function has been deprecated. Use get_the_author_meta() instead.

Retrieve the ID of the author of the current post.

Description

See also

Return

(string|int) The author's ID.

Source

File: wp-includes/deprecated.php

function get_the_author_ID() {
	_deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'ID\')' );
	return get_the_author_meta('ID');
}

Changelog

Version Description
2.8.0 Use get_the_author_meta()
1.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_the_author_id