Definition:
function remove_post_type_support( $post_type, $feature ) {}
Remove support for a feature from a post type.
Parameters
- string $post_type: The post type for which to remove the feature
- string $feature: The feature being removed
Source code
function remove_post_type_support( $post_type, $feature ) {
global $_wp_post_type_features;
if ( !isset($_wp_post_type_features[$post_type]) )
return;
if ( isset($_wp_post_type_features[$post_type][$feature]) )
unset($_wp_post_type_features[$post_type][$feature]);
}
2717

February 12, 2011 


No comments yet... Be the first to leave a reply!