Skip to main content

fc_coupon_code_field_description

Type: Filter

Filters the coupon code field description.

Signature​

apply_filters( 'fc_coupon_code_field_description', $value );

Parameters​

NameTypeDescription
$valuestringValue to filter. Default empty string.

Since​

  • 2.3.4

Source: inc/checkout-coupon-codes.php

Examples​

add_filter( 'fc_coupon_code_field_description',
/**
* Add description to coupon code field.
*
* @param string $value Value to filter. Default empty string.
* @return string Filtered value.
*/
function( $value ) {
return __( 'Enter your discount code to apply savings.', 'my-theme' );
},
10
);