How can override a add_filter of a plugin?
How can I override add_filter of a plugin? like add_filter( ‘wcml_switch_currency_exception’, ‘cart_switching_currency’, 10, 4 ); I want to use my custom function instead “cart_switching_currency” function. 2 Answers 2 Filters come with a priority parameter, the default is 10, so to override a function you need to increase the priority: add_filter( ‘wcml_switch_currency_exception’, ‘cart_switching_currency’, 99, 4 ); … Read more