wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_the_author_id › WordPress Function

Since1.5.0
已弃用2.8.0
get_the_author_id ( 没有参数 )
查看:
返回:
  • (string|int) The author's ID.
定义在:
文档:

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');
}