WordPress at a glance

remove_post_type_support() WP 1.0

Remove support for a feature from a post type.

Notes:

  • Global. Array. $_wp_post_type_features
✈ 1 time = 0.000021s = very fast | 50000 times = 0.03s = speed of light

No Hooks.

Return

Nothing (null).

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.

Code of remove_post_type_support: wp-includes/post.php VER 4.9.8

<?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