diff --git a/includes/admin/meta-boxes/class-wc-meta-box-product-data.php b/includes/admin/meta-boxes/class-wc-meta-box-product-data.php index f53ca0b461c..4bf7fe95420 100644 --- a/includes/admin/meta-boxes/class-wc-meta-box-product-data.php +++ b/includes/admin/meta-boxes/class-wc-meta-box-product-data.php @@ -252,24 +252,35 @@ class WC_Meta_Box_Product_Data { echo '
'; // Tax - woocommerce_wp_select( array( 'id' => '_tax_status', 'label' => __( 'Tax Status', 'woocommerce' ), 'options' => array( - 'taxable' => __( 'Taxable', 'woocommerce' ), - 'shipping' => __( 'Shipping only', 'woocommerce' ), - 'none' => _x( 'None', 'Tax status', 'woocommerce' ) - ), 'desc_tip' => 'true', 'description' => __( 'The tax status specifies which part of your product tax will be calculated on.', 'woocommerce' ) ) ); + woocommerce_wp_select( array( + 'id' => '_tax_status', + 'label' => __( 'Tax Status', 'woocommerce' ), + 'options' => array( + 'taxable' => __( 'Taxable', 'woocommerce' ), + 'shipping' => __( 'Shipping only', 'woocommerce' ), + 'none' => _x( 'None', 'Tax status', 'woocommerce' ) + ), + 'desc_tip' => 'true', + 'description' => __( 'Define whether or not the entire product is taxable, or just the cost of shipping it.', 'woocommerce' ) + ) ); $tax_classes = WC_Tax::get_tax_classes(); $classes_options = array(); $classes_options[''] = __( 'Standard', 'woocommerce' ); if ( ! empty( $tax_classes ) ) { - foreach ( $tax_classes as $class ) { $classes_options[ sanitize_title( $class ) ] = esc_html( $class ); } } - woocommerce_wp_select( array( 'id' => '_tax_class', 'label' => __( 'Tax Class', 'woocommerce' ), 'options' => $classes_options, 'desc_tip' => 'true', 'description' => __( 'The tax class specifies what tax rate your product will be calculated with.', 'woocommerce' ) ) ); + woocommerce_wp_select( array( + 'id' => '_tax_class', + 'label' => __( 'Tax Class', 'woocommerce' ), + 'options' => $classes_options, + 'desc_tip' => 'true', + 'description' => __( 'Choose a tax class for this product. Tax classes are used to apply different tax rates specific to certain types of product.', 'woocommerce' ) + ) ); do_action( 'woocommerce_product_options_tax' );