remove_post_type_support

函数


remove_post_type_support ( $post_type, $feature )
参数
  • (string)
    $post_type
    The post type for which to remove the feature.
    Required:
  • (string)
    $feature
    The feature being removed.
    Required:
定义位置
  • wp-includes/post.php
    , line 2141
引入
3.0.0
弃用

从文章类型中删除对某项功能的支持。

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

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