get_queried_object_id()
get_queried_object_id()
检索当前查询对象的ID。
Retrieve ID of the current queried object.
说明(Description)
WP_Query::get_Query_object_id()的包装器。
返回(Return)
(int)查询对象的ID。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.1.0 | wp-includes/query.php:58 | 10 | 1 function |
get_queried_object_id() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_queried_object_id/