Php 从WooCommerce生成的产品帖子类型中删除帖子内容
我试图删除下图中显示的第一个字段,但无法删除。我已成功删除“产品简短描述”字段,但无法删除Php 从WooCommerce生成的产品帖子类型中删除帖子内容,php,wordpress,custom-post-type,Php,Wordpress,Custom Post Type,我试图删除下图中显示的第一个字段,但无法删除。我已成功删除“产品简短描述”字段,但无法删除post\u内容字段 我所尝试的: add_action('init','remove_content'); 函数remove_content(){ 删除类型支持(“产品”、“编辑器”); } 您可以尝试一下: 我认为woocommerce使用的帖子类型是product,您需要的操作是admin\u init add_action('admin_init', 'hide_editor');
post\u内容
字段
我所尝试的:
add_action('init','remove_content');
函数remove_content(){
删除类型支持(“产品”、“编辑器”);
}
您可以尝试一下: 我认为woocommerce使用的帖子类型是
product
,您需要的操作是admin\u init
add_action('admin_init', 'hide_editor');
function hide_editor() {
remove_post_type_support('product', 'editor');
}
您可以尝试一下: 我认为woocommerce使用的帖子类型是
product
,您需要的操作是admin\u init
add_action('admin_init', 'hide_editor');
function hide_editor() {
remove_post_type_support('product', 'editor');
}