woocommerce_checkout_coupon_form()
Output the Coupon form for the checkout.
No Hooks.
Return
null
. Nothing (null).
Usage
woocommerce_checkout_coupon_form();
woocommerce_checkout_coupon_form() woocommerce checkout coupon form code WC 9.2.3
function woocommerce_checkout_coupon_form() { if ( is_user_logged_in() || WC()->checkout()->is_registration_enabled() || ! WC()->checkout()->is_registration_required() ) { wc_get_template( 'checkout/form-coupon.php', array( 'checkout' => WC()->checkout(), ) ); } }