I’m not sure if this works because I haven’t tested in local. Try this.
add_filter( 'woocommerce_rate_label', 'custom_tax_rate_label', 10, 2 );
function custom_tax_rate_label( 'Custom Name' ){
return '';
}
Hi, iam not sure if I am doing it right, but it causes critical erros
My defaults taxes names and slugs are
Standard (standard)
Snížená sazba (snizena-sazba)
and i need to rename it to:
high and low
have you any idea how todo it?
thanks
Make sure you’re adding this to your function.php file inside your theme.
I did it, but here is error message
syntax error, unexpected ”low” (T_CONSTANT_ENCAPSED_STRING), expecting variable (T_VARIABLE)
Where in your functions did you place it? Can you provide a screenshot?
Plugin Support
John Coy a11n
(@johndcoy)
Automattic Happiness Engineer
Hi @janbrokes
We haven’t heard from you in a while so I am marking this thread as resolved. Feel free to open a new thread if you still have questions.