Skip to main content

fc_coupon_code_field_label

Type: Filter

Filters the coupon code field label.

Signature​

apply_filters( 'fc_coupon_code_field_label', $label );

Parameters​

NameTypeDescription
$labelstringLabel text.

Since​

  • 1.2.0

Source: inc/checkout-coupon-codes.php

Examples​

add_filter( 'fc_coupon_code_field_label',
/**
* Customize coupon code field label.
*
* @param string $label Label text.
* @return string Filtered value.
*/
function( $label ) {
return __( 'Discount Code', 'my-theme' );
},
10
);