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.

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: wp-includes/post.php WP 5.2.4

<?php
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
    Hello, !     Log In . Register