Advertisements

remove_post_type_support

Definition:
function remove_post_type_support( $post_type, $feature ) {}

Remove support for a feature from a post type.

Parameters

  • string $post_type: The post type for which to remove the feature
  • string $feature: The feature being removed

Source code

function remove_post_type_support( $post_type, $feature ) {

	global $_wp_post_type_features;



	if ( !isset($_wp_post_type_features[$post_type]) )

		return;



	if ( isset($_wp_post_type_features[$post_type][$feature]) )

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

}

2717

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: