wpseek.com
A WordPress-centric search engine for devs and theme authors



remove_post_type_support › WordPress Function

Since3.0.0
Deprecatedn/a
remove_post_type_support ( $post_type, $feature )
Parameters: (2)
  • (string) $post_type The post type for which to remove the feature.
    Required: Yes
  • (string) $feature The feature being removed.
    Required: Yes
Defined at:
Codex:

Removes support for a feature from a post type.



Source

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

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