The What
Description
This construct (function) gets all post type features that are configured for the given post type.
Parameters
post_type
- The key or slug of the given post type for which the features will be fetched.
output
- (Optional) Specify if you want the post type objects, i.e.
objects
, returned to you. The default isnames
, meaning you will receive an array of post type names.
Return Values
Returns an array of the configured post type features. If the post type does not exist, then an empty array is returned.
Who needs copy/paste? Right. Writing code from scratch is fun!
More coming soon…keep checking back.