get_queried_object


get_queried_object ( No parameters )

Returns:
  • (WP_Term|WP_Post_Type|WP_Post|WP_User|null) The queried object.
Defined at:

Description

Retrieves the currently queried object.Wrapper for WP_Query::get_queried_object().

Related Functions

get_queried_object_id, rest_is_object, get_linkobjects, get_user_meta, get_post_type_object

Top Google Results

User discussions

wpseek mobile