Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('add_to_cart_redirect', 'themeprefix_add_to_cart_redirect');
- function themeprefix_add_to_cart_redirect() {
- global $woocommerce;
- $checkout_url = $woocommerce->cart->get_checkout_url();
- return $checkout_url;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement