woocommerce_shipping_tax_class

woocommerce_shipping_tax_class

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.5.2

apply_filters('woocommerce_shipping_tax_class') is found 1 times:

  • /includes/class-wc-tax.php line 604
    		 * @param WC_Cart|null     $cart      The cart object containing all cart items, or null if not available.
    		 * @param WC_Customer|null $customer  The customer object, or null if not available.
    		 * @param array            $location  The tax location array [country, state, postcode, city].
    		 */
    		$tax_class = apply_filters( 'woocommerce_shipping_tax_class', $tax_class, $cart, $customer, $location );
    
    		// If filter returned null, treat as no taxable items.
    		if ( is_null( $tax_class ) ) {
    			return array();
    		}