The What
Description
If the post type is registered with WordPress Core, then this construct (function) returns the object, which is an instance of WP_Post_Type
. Else, null
is returned.
Parameters
post_type_key
- The key or slug of the post type to get.
Return Values
If the post type exists, then it returns the object. Else, null
is returned.
Hands off the keyboard. Web development starts by thinking first, then planning it out, and then coding it.
More coming soon…keep checking back.