woocommerce_coupons_enabled

woocommerce_coupons_enabled

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

apply_filters('woocommerce_coupons_enabled') is found 1 times:

  • /includes/wc-coupon-functions.php line 71
     *
     * @return bool
     */
    function wc_coupons_enabled() {
    	return apply_filters( 'woocommerce_coupons_enabled', 'yes' === get_option( 'woocommerce_enable_coupons' ) );
    }
    
    /**
     * Check if two coupon codes are the same.
     * Lowercasing to ensure case-insensitive comparison.
     *