Definition:
function post_type_supports( $post_type, $feature ) {}
Checks a post type’s support for a given feature
Parameters
- string $post_type: The post type being checked
- string $feature: the feature being checked
Source code
function post_type_supports( $post_type, $feature ) { global $_wp_post_type_features; if ( !isset( $_wp_post_type_features[$post_type][$feature] ) ) return false; // If no args passed then no extra checks need be performed if ( func_num_args() <= 2 ) return true; // @todo Allow pluggable arg checking //$args = array_slice( func_get_args(), 2 ); return true; }
2597
No comments yet... Be the first to leave a reply!