Created
October 28, 2016 12:42
-
-
Save MinaPansuriya/4d792eab1f367cef7dcd45c9b853bc4d to your computer and use it in GitHub Desktop.
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
/** | |
* @Title: WooCommerce Display Coupon on Checkout page only | |
* @Author: Mina Pansuriya | |
* @Website: http://minapansuriya.com | |
*/ | |
function pbs_woo_hide_coupon_on_cart_page( $enabled ) { | |
if ( is_cart() ) { | |
$enabled = false; | |
} | |
return $enabled; | |
} | |
add_filter( 'woocommerce_coupons_enabled', 'pbs_woo_hide_coupon_on_cart_page' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment