Created
October 28, 2016 11:25
-
-
Save MinaPansuriya/9451d7262f4390c3171e8fe2f2bd19ef to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* @Title: WooCommerce Hide/Disable Coupons | |
* @Author: Mina Pansuriya | |
* @Website: http://minapansuriya.com | |
*/ | |
add_filter( 'woocommerce_coupons_enabled', 'pbs_woo_disable_coupon' ); | |
function pbs_woo_disable_coupon( $coupons_enabled ) { | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment