get_queried_object()
最后更新于:2021-11-26 23:18:57
get_queried_object()Retrieves the currently queried object.
响应
(GC_Term|GC_Post_Type|GC_Post|GC_User|null) The queried object.
源文件
文件: gc-includes/query.php
function get_queried_object() {
global $gc_query;
return $gc_query->get_queried_object();
}