The What
Description
This construct (function) checks if the given post type has been registered with WordPress Core. It checks in the global variable $wp_post_types
, which is an array of registered post types.
Parameters
post_type_key
- The key or slug of the post type to be checked within the global variable
$wp_post_types
.
Return Values
Returns true
if the post type is registered. Else, false
is returned.
Your functions are bloated. Put them on a diet. Think "skinny" and "as few lines as possible."
More coming soon…keep checking back.