woocommerce_rate_code

woocommerce_rate_code

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_rate_code') is found 1 times:

  • /includes/class-wc-tax.php line 746
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
            $code[]      = absint( $rate->tax_rate_priority );
            $code_string = strtoupper( implode( '-', array_filter( $code ) ) );
        }
     
        return apply_filters( 'woocommerce_rate_code', $code_string, $key );
    }
     
    /**
     * Sums a set of taxes to form a single total. Values are pre-rounded to precision from 3.6.0.
     *
     * @param  array $taxes Array of taxes.