post_type_exists
post_type_exists ( $post_type )
Parameters:- (string) post_type Post type name.
See:Returns:- (bool) Whether post type is registered.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Determines whether a post type is registered.For more information on this and similar theme functions, check out
the {@link Conditional Tags} article in the Theme Developer Handbook.