wc_coupons_enabled()
Check if coupons are enabled.
Description Description
Filterable.
Return Return
(bool)
Source Source
File: includes/wc-coupon-functions.php
function wc_coupons_enabled() { return apply_filters( 'woocommerce_coupons_enabled', 'yes' === get_option( 'woocommerce_enable_coupons' ) ); }
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |