add_filter('woocommerce_add_to_cart_redirect', function($url){ if ( isset($_GET['redirect_to']) && $_GET['redirect_to'] === 'checkout' ) { return wc_get_checkout_url(); } return $url; }, 10, 1);
AI-Powered Legal Chatbot

Copyright & Trademark Helper

Legal Disclaimer

This information is for educational purposes only and is not legal advice. You should consult a qualified legal professional for advice on your specific situation. By proceeding, you agree to these terms.