the_author_ID()

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

Display the ID of the author of the current post.

Description

See also

Source

File: wp-includes/deprecated.php

function the_author_ID() {
	_deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'ID\')' );
	the_author_meta('ID');
}

Changelog

Version Description
2.8.0 Use the_author_meta()
0.71 Introduced.

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