fc_pro_checkout_coupon_code_message_text
Type: Filter
Filters the text for checkout coupon code message.
Signature
apply_filters( 'fc_pro_checkout_coupon_code_message_text', $text );
Parameters
| Name | Type | Description |
|---|---|---|
$text | string | Text. |
Since
1.4.1
Source: inc/checkout-coupon-codes.php
Examples
add_filter( 'fc_pro_checkout_coupon_code_message_text',
/**
* Customize coupon code message text.
*
* @param string $text Text.
* @return string Filtered value.
*/
function( $text ) {
return __( 'Got a discount code? Enter it here!', 'text-domain' );
},
10
);