Php Woocommerce-变体名称
好时光Php Woocommerce-变体名称,php,wordpress,woocommerce,Php,Wordpress,Woocommerce,好时光 WordPress 5.7 Woocommerce 5.1.0 我想关闭除一个产品类别以外的所有产品的变体名称 我拥有的所有商品类别中的一种——两种变体,因此您需要留下变体的名称 有一个名为variable.php的文件,其代码如下: <td class="label"><label for="<?php echo esc_attr( sanitize_title( $attribute_name ) ); ?>"
- WordPress 5.7
- Woocommerce 5.1.0
<td class="label"><label for="<?php echo esc_attr( sanitize_title( $attribute_name ) ); ?>"><?php echo wc_attribute_label( $attribute_name ); // WPCS: XSS ok. ?></label></td>