post_type_supports() – Check a post type’s support for a given feature.
You appear to be a bot. Output may be restricted
Description
Checks a post type's support for a given feature.
Usage
$bool = post_type_supports( $post_type, $feature );
Parameters
- $post_type
- ( string ) required – The post type being checked.
- $feature
- ( string ) required – The feature being checked.
Returns
bool Whether the post type supports the given feature.
Source
File name: wordpress/wp-includes/post.php
Lines:
1 to 5 of 5
function post_type_supports( $post_type, $feature ) { global $_wp_post_type_features; return ( isset( $_wp_post_type_features[ $post_type ][ $feature ] ) ); }