How to on/off woocommerce filter with redux framework
-
I am using this woocommerce filter in my function file
add_filter ('add_to_cart_redirect', 'redirect_to_checkout'); function redirect_to_checkout() { global $woocommerce; $checkout_url = $woocommerce->cart->get_checkout_url(); return $checkout_url; }
How can i get on/off system to this filter with redux framework. I already created Option in redux. But i am not sure how can i use redux option in function file.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to on/off woocommerce filter with redux framework’ is closed to new replies.