Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* @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