fc_coupon_code_displayed_as_substep
Type: Filter
Filters whether coupon codes are displayed as a checkout substep.
Signature
apply_filters( 'fc_coupon_code_displayed_as_substep', $enabled );
Parameters
| Name | Type | Description |
|---|---|---|
$enabled | bool | Whether the feature is enabled. Default true. |
Since
4.0.0
Source: inc/checkout-coupon-codes.php
Examples
add_filter( 'fc_coupon_code_displayed_as_substep',
/**
* Disable coupon code substep display.
*
* @param bool $enabled Whether the feature is enabled. Default true.
* @return bool Filtered value.
*/
function( $enabled ) {
return false;
},
10
);