WPDev.one
Core Function
View Source on Trac ↗

post_type_exists()

post_type_exists( mixed $post_type )

Determines whether a post type is registered.

Parameters 1 required

Name / Type Description
$post_type
string

Post type name.

Required

Return Value

(bool)
Whether post type is registered.

Function Information

Since Version
3.0.0
Source File
wp-includes/post.php
Advertisement