WordPress at a glance

remove_post_type_support() WP 1.0

Remove support for a feature from a post type.

1 time — 0.000021 sec (very fast) | 50000 times — 0.03 sec (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 5.7.2

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

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

From tag: Custom post type (post_type)

More from category: Custom Types

No comments
    Log In