remove_post_type_support()

从支柱类型中删除对要素的支持。

remove_post_type_support(string $post_type,string $feature)

参数(Parameters)

参数类型必填说明
$post_type(string)必需要删除其功能的日志类型。
$feature(string)必需正在删除的功能。

返回(Return)

无返回值


源码(Source)

/**
 * Remove support for a feature from a post type.
 *
 * @since 3.0.0
 *
 * @global array $_wp_post_type_features
 *
 * @param string $post_type The post type for which to remove the feature.
 * @param string $feature   The feature being removed.
 */
function remove_post_type_support( $post_type, $feature ) {
	global $_wp_post_type_features;
	unset( $_wp_post_type_features[ $post_type ][ $feature ] );
}
更新版本源码位置使用被使用
3.0.0wp-includes/post.php:187600

笔记(Notes)

删除对摘录的支持
删除对post格式的支持
如果选择了某些模板,则隐藏页面可视化编辑器:

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索