woocommerce_checkout_coupon_form()
Output the Coupon form for the checkout.
Хуков нет.
Возвращает
null. Ничего (null).
Использование
woocommerce_checkout_coupon_form();
Код woocommerce_checkout_coupon_form() woocommerce checkout coupon form WC 10.6.2
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(),
)
);
}
}