get_queried_object()
get_queried_object()
检索当前查询的对象。
Retrieve the currently-queried object.
说明(Description)
WP_Query::get_Query_object()的包装器。
返回(Return)
(object)查询的对象。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.1.0 | wp-includes/query.php:42 | 21 | 1 function |
笔记(Notes)
“当前查询对象”是指作为网页主题的对象:
get_queried_object() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_queried_object/