Last active
June 23, 2020 11:35
-
-
Save sarangs07/b2ffc9a1d71730e990a2c8e4b911841b to your computer and use it in GitHub Desktop.
Change Coupon field texts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* How to add the custome code. | |
* | |
* Please follow below instructions: | |
* 1. Copy the below code. | |
* 2. Open your child theme's functions.php file. | |
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting. | |
*/ | |
add_filter( 'cartflows_coupon_field_options', 'change_coupon_field_texts' ); | |
function change_coupon_field_texts( $coupon_field ){ | |
$coupon_field['field_text'] = 'Add text here'; // This will change the placeholder text of the coupon text field. | |
$coupon_field['button_text'] = 'Add button text here'; // This will change the Apply coupon button text. | |
return $coupon_field; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment