更新时间:2023-12-05 18:03:22
这对我来说可以删除标签:
This worked for me for removing the tabs:
在functions.php中添加此代码:
Adding this in functions.php:
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
unset( $tabs['reviews'] ); // Remove the reviews tab
unset( $tabs['additional_information'] ); // Remove the additional information tab
return $tabs;
}
要返回要显示在描述下的属性,我无法弄清楚,所以我只是在描述中添加了大小
To return the attributes to display under description, I couldn't figure it out so I just added the sizes in the description