Skip to main content

fc_coupon_code_button_label

Type: Filter

Filters the apply-coupon button label.

Signature​

apply_filters( 'fc_coupon_code_button_label', $label );

Parameters​

NameTypeDescription
$labelstringLabel text.

Since​

  • 1.2.0

Source: inc/checkout-coupon-codes.php

Examples​

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