fc_pro_cart_coupon_code_field_initially_expanded
Type: Filter
Filters whether cart coupon code field initially expanded.
Signature
apply_filters( 'fc_pro_cart_coupon_code_field_initially_expanded', $value );
Parameters
| Name | Type | Description |
|---|---|---|
$value | bool | Whether cart coupon code field initially expanded. Default false. |
Since
1.3.0
Source: inc/cart-ajax.php
Examples
add_filter( 'fc_pro_cart_coupon_code_field_initially_expanded',
/**
* Show coupon field expanded by default.
*
* @param bool $value Whether cart coupon code field initially expanded. Default false.
* @return bool Filtered value.
*/
function( $value ) {
return true;
},
10
);