WC_Tax::get_rate_percent( mixed $key_or_rate )
Return a given rates percent.
Description Description
Parameters Parameters
- $key_or_rate
-
(Required) Tax rate ID, or the db row itself in object format.
Return Return
(string)
Source Source
File: includes/class-wc-tax.php
public static function get_rate_percent( $key_or_rate ) { $rate_percent_value = self::get_rate_percent_value( $key_or_rate ); $tax_rate_id = is_object( $key_or_rate ) ? $key_or_rate->tax_rate_id : $key_or_rate; return apply_filters( 'woocommerce_rate_percent', $rate_percent_value . '%', $tax_rate_id ); }