Answers for "WooCommerce Catalog Mode snippets"

PHP
0

WooCommerce Catalog Mode snippets

function wdm_add_to_cart_checkout_redirect() {
    wp_safe_redirect( get_permalink( get_option( 'woocommerce_checkout_page_id' ) ) );
    die();
}
add_action( 'woocommerce_add_to_cart',  'wdm_add_to_cart_checkout_redirect', 11 );
Posted by: Guest on October-08-2020

Browse Popular Code Answers by Language