The What
Description
This construct (function) registers a feature(s) support for the specified post type. The support features are configured when the post type is registered. However, you may wish to change this behavior by adding another feature.
For example, a plugin that you are using adds a post type. But your project needs an additional feature that the plugin is not including. Using this function, you are able to customize the post type for your needs.
You can also use this function to add features to the built-in post types, i.e. post, page, etc.
Parameters
post_type
- The post type’s slug which specifies which post type to use for the new feature.
support_feature
- The feature to add to the post type. Features include the following:
title
editor
(content)author
thumbnail
(featured image)excerpt
trackbacks
custom-fields
comments
(also will see comment count balloon on edit screen)revisions
(will store revisions)page-attributes
(template and menu order) (hierarchical must be true)post-formats
Return Values
This function does not return anything.
Keep It Simple, Stupid (KISS) - the best kiss you'll get in code.
More coming soon…keep checking back.