Skip to main content

fc_coupon_code_field_initially_expanded

Type: Filter

Filters whether the coupon code field starts expanded.

Signature​

apply_filters( 'fc_coupon_code_field_initially_expanded', $value );

Parameters​

NameTypeDescription
$valueboolValue to filter. Default false.

Since​

  • 1.2.10

Source: inc/checkout-coupon-codes.php

Examples​

add_filter( 'fc_coupon_code_field_initially_expanded',
/**
* Start with coupon code field expanded.
*
* @param bool $value Value to filter. Default false.
* @return bool Filtered value.
*/
function( $value ) {
return true;
},
10
);