get_queried_object_id()

最后更新于:2021-11-26 23:19:13

get_queried_object_id()

Retrieves the ID of the currently queried object.

响应

(int) ID of the queried object.

源文件

文件: gc-includes/query.php

function get_queried_object_id() {
	global $gc_query;
	return $gc_query->get_queried_object_id();
}