//send customer directly to the checkout add_filter('add_to_cart_redirect', 'theme_prefix_add_to_cart_redirect'); function theme_prefix_add_to_cart_redirect() { global $woocommerce; $checkout_url = $woocommerce->cart->get_checkout_url(); return $checkout_url; }