Last active
March 9, 2020 09:40
-
-
Save sarangs07/c460a598b68f59cfbc7045037c7f9ecc to your computer and use it in GitHub Desktop.
Filter to hide/show Coupons on CartFlows page
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
/* | |
* Code installation 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. | |
*/ | |
/* Filter to hide/show on CartFlows page */ | |
add_filter( 'cartflows_show_coupon_field', 'br_hide_coupon_field' ); | |
function br_hide_coupon_field(){ | |
return false; | |
} | |
/* Filter to hide/show on CartFlows page */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment