remove_post_type_support() WP 1.0
Remove support for a feature from a post type.
1 time = 0.000021s = very fast | 50000 times = 0.03s = speed of light
No Hooks.
Return
Null. Nothing.
Usage
remove_post_type_support( $post_type, $feature );
- $post_type(string) (required)
- The post type for which to remove the feature.
- $feature(string) (required)
- The feature being removed.
Notes
- Global. Array. $_wp_post_type_features
Changelog
Since 3.0.0 | Introduced. |
Code of remove_post_type_support() remove post type support WP 5.6
function remove_post_type_support( $post_type, $feature ) {
global $_wp_post_type_features;
unset( $_wp_post_type_features[ $post_type ][ $feature ] );
}