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 https://developer.wordpress.org/themes/basics/conditional-tags/ Conditional Tags} article in the Theme Developer Handbook.

Related Functions

post_exists, post_type_supports, get_post_type_object, get_post_type_labels, get_post_types

Top Google Results

User discussions

wpseek mobile