wpseek.com
WordPress开发者和主题制作者的搜索引擎



remove_post_type_support › WordPress Function

Since3.0.0
已弃用n/a
remove_post_type_support ( $post_type, $feature )
参数: (2)
  • (string) $post_type The post type for which to remove the feature.
    Required: Yes
  • (string) $feature The feature being removed.
    Required: Yes
定义在:
文档:

Removes support for a feature from a post type.



源码

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

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