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.
If you listen carefully, you can hear the 1s and 0s flowing in your computer.
More coming soon…keep checking back.