Determines whether a post type is registered.
Description
For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.
See also
Parameters
$post_type
stringrequired- Post type name.
Source
*
* @param string $post_type Post type name.
* @return bool Whether post type is registered.
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
Basic Examples