wordpress add to cart redirect php

Solutions on MaxInterview for wordpress add to cart redirect php by the best coders in the world

showing results for - "wordpress add to cart redirect php"
Alessio
26 Aug 2017
1add_filter ('add_to_cart_redirect', 'redirect_to_checkout');
2
3function redirect_to_checkout() {
4    global $woocommerce;
5    $checkout_url = $woocommerce->cart->get_checkout_url();
6    return $checkout_url;
7}