Skip to main content

fc_coupon_code_field_placeholder

Type: Filter

Filters the coupon code field placeholder.

Signature​

apply_filters( 'fc_coupon_code_field_placeholder', $value );

Parameters​

NameTypeDescription
$valuestringValue to filter.

Since​

  • 1.2.0

Source: inc/checkout-coupon-codes.php

Examples​

add_filter( 'fc_coupon_code_field_placeholder',
/**
* Customize coupon code field placeholder.
*
* @param string $value Value to filter.
* @return string Filtered value.
*/
function( $value ) {
return __( 'Type your discount code', 'my-theme' );
},
10
);