get_the_author_id

函数


get_the_author_id ( No parameters )
返回值
  • (string|int) The author’s ID.
相关
  • get_the_author_meta()
定义位置
  • wp-includes/deprecated.php
    , line 1632
引入
1.5.0
弃用
2.8.0

Retrieve the ID of the author of the current post.

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