Answers for "wordpress add to cart redirect php"

PHP
0

wordpress add to cart redirect php

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;
}
Posted by: Guest on March-14-2020

Code answers related to "wordpress add to cart redirect php"

Browse Popular Code Answers by Language