get_post_type_object
get_post_type_object ( $post_type )
Parameters:- (string) post_type The name of a registered post type.
See:Returns:- (WP_Post_Type|null) WP_Post_Type object if it exists, null otherwise.
Defined at:Change Log: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Retrieves a post type object by name.