woocommerce get standard tax rate
-
I’m using this get_rates() function to get the current tax rate from woocommerce, But i get an this error:
code:
$tax_rate = round( reset( WC_Tax::get_rates() )['rate'] ); print_r($tax_rate);
error:
> Only variables should be passed by referenceWhat variable should be passsed?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘woocommerce get standard tax rate’ is closed to new replies.