add_post_type_support( string $post_type, string|array $support_feature );
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.
- The post type’s slug which specifies which post type to use for the new feature.
- The feature to add to the post type. Features include the following:
comments(also will see comment count balloon on edit screen)
revisions(will store revisions)
page-attributes(template and menu order) (hierarchical must be true)
This function does not return anything.
Code. Eat. Code. Sleep. Dream about Code. Code.
More coming soon…keep checking back.