wc_coupons_enabled()WC 2.5.0

Check if coupons are enabled. Filterable.

Hooks from the function

Return

true|false.

Usage

wc_coupons_enabled();

Changelog

Since 2.5.0 Introduced.

Code of wc_coupons_enabled() WC 6.5.1

function wc_coupons_enabled() {
	return apply_filters( 'woocommerce_coupons_enabled', 'yes' === get_option( 'woocommerce_enable_coupons' ) );
}