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



get_queried_object ›

Since3.1.0
已弃用n/a
get_queried_object ( 没有参数 )
返回:
  • (object) Queried object.
定义在:
文档:

Retrieve the currently-queried object.

Wrapper for WP_Query::get_queried_object().



源码

function get_queried_object() {
	global $wp_query;
	return $wp_query->get_queried_object();
}