woocommerce catalog mode snippets

Solutions on MaxInterview for woocommerce catalog mode snippets by the best coders in the world

showing results for - "woocommerce catalog mode snippets"
Eleanor
19 Sep 2019
1function wdm_add_to_cart_checkout_redirect() {
2    wp_safe_redirect( get_permalink( get_option( 'woocommerce_checkout_page_id' ) ) );
3    die();
4}
5add_action( 'woocommerce_add_to_cart',  'wdm_add_to_cart_checkout_redirect', 11 );
6