WordPress at a glance

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.


Null. Nothing.


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.


  • Global. Array. $_wp_post_type_features


Since 3.0.0 Introduced.

Code of remove post type support: wp-includes/post.php WP 5.4.2

function remove_post_type_support( $post_type, $feature ) {
	global $_wp_post_type_features;

	unset( $_wp_post_type_features[ $post_type ][ $feature ] );

Related Functions

From tag: Custom post type (post_type)

More from category: Custom Types

No comments
        Log In . Register