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

get_the_author_ID(): string|int

Retrieve the ID of the author of the current post.


Description

Top ↑

See also


Top ↑

Return

string|int The author's ID.


Top ↑

Source

File: wp-includes/deprecated.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
2.8.0 Use get_the_author_meta()
1.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.