get_queried_object_id


get_queried_object_id ( No parameters )

Returns:
  • (int) ID of the queried object.
Defined at:

Description

Retrieves the ID of the currently queried object.Wrapper for WP_Query::get_queried_object_id().

Related Functions

get_queried_object, rest_is_object, get_linkobjects, get_user_option, get_objects_in_term

Top Google Results

User discussions

wpseek mobile