Created by Michael Visser 2017-07-22 View revision File functions.php Added Side-by-side diff More Ignore whitespace Hide word diff +<?php + +// Redirect customer to Checkout instead of Cart page +function custom_woocommerce_redirect_to_checkout() { + + return WC()->cart->get_checkout_url(); + +} +add_filter( 'add_to_cart_redirect', 'custom_woocommerce_redirect_to_checkout' ); + +?>