Core Function
View Source on Trac ↗ get_queried_object_id()
get_queried_object_id( ) Retrieves the ID of the currently queried object.
Return Value
(int)
ID of the queried object.
Function Information
Since Version
3.1.0
Source File
wp-includes/query.php
Advertisement