WordPress at Your Fingertips

wc_coupons_enabled() WC 1.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 5.7.0

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

WC Conditional Tags

No comments
    Log In