get_queried_object
get_queried_object ( No parameters )
Returns:- (WP_Term|WP_Post_Type|WP_Post|WP_User|null) The queried object.
Defined at: - Introduced in WordPress: 3.1.0
- Deprecated in WordPress: —
Description
Retrieves the currently queried object.Wrapper for WP_Query::get_queried_object().