remove_post_type_support( string $post_type, string $feature )

Remove support for a feature from a post type.


Parameters

$post_type

(string) (Required) The post type for which to remove the feature.

$feature

(string) (Required) The feature being removed.


Source

File: wp-includes/post.php

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

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

Changelog

Changelog
Version Description
WP-3.0.0 Introduced.