get_queried_object_id
get_queried_object_id ( No parameters )
Returns:- (int) ID of the queried object.
Defined at: - Introduced in WordPress: 3.1.0
- Deprecated in WordPress: —
Description
Retrieves the ID of the currently queried object.Wrapper for WP_Query::get_queried_object_id().