get_the_author_ID()
Deprecated since 2.8.0. It is no longer supported and may be removed in future releases. Use get_the_author_meta() instead.
Retrieve the ID of the author of the current post.
No Hooks.
Returns
String|Int. The author's ID.
Usage
get_the_author_ID();
Notes
Changelog
| Since 1.5.0 | Introduced. |
| Deprecated since 2.8.0 | Use get_the_author_meta() |
get_the_author_ID() get the author ID code WP 6.9
function get_the_author_ID() {
_deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'ID\')' );
return get_the_author_meta('ID');
}