post_type_supports( string $post_type_key, string $feature );
This construct (function) checks if the feature is registered (supported) for the given post type. Using the global
$_wp_post_type_features, it checks if the feature is set in the post type.
- The post type’s key (slug) to specify which post type is being checked.
- Feature to be checked.
true if the feature is supported for the given post type, i.e. meaning it’s registered as a feature. Else
false is returned.
You will grow in this profession when you incrementally and systematically stretch yourself....bit-by-bit.
More coming soon…keep checking back.