woocommerce_rate_percent
Usage
add_filter( 'woocommerce_rate_percent', 'wp_kama_woocommerce_rate_percent_filter', 10, 2 ); /** * Function for `woocommerce_rate_percent` filter-hook. * * @param $rate_percent_value . '%' * @param $tax_rate_id * * @return */ function wp_kama_woocommerce_rate_percent_filter( $rate_percent_value . '%', $tax_rate_id ){ // filter... return $rate_percent_value . '%'; }
- $rate_percent_value . '%'
- -
- $tax_rate_id
- -
Where the hook is called
woocommerce_rate_percent
woocommerce/includes/class-wc-tax.php 695
return apply_filters( 'woocommerce_rate_percent', $rate_percent_value . '%', $tax_rate_id );