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:

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.

Related Functions

post_exists, post_type_supports, term_exists, get_post_types, get_post_type_object

Top Google Results

User discussions

wpseek mobile