miriam-m
3/12/2020 - 8:37 AM

Force redirect to cart

Force redirect to cart after add to cart

function mdshak_cart_url( $example ) {
    // Maybe modify $example in some way.
    return 'https://emmatissing.com/cart/';
}
add_filter( 'woocommerce_add_to_cart_redirect', 'mdshak_cart_url' );