Core Function
View Source on Trac ↗ post_type_supports()
post_type_supports( mixed $post_type, mixed $feature ) Checks a post type's support for a given feature.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $post_type string | The post type being checked. Required |
| $feature string | The feature being checked. Required |
Return Value
(bool)
Whether the post type supports the given feature.
Function Information
Since Version
3.0.0
Source File
wp-includes/post.php
Advertisement