WordPress at a glance
function is not described

wc_coupons_enabled() WC 2.5.0

Check if coupons are enabled. Filterable.

Hooks from the function
Return

true|false. Nothing.

Usage

wc_coupons_enabled();

Changelog

Since 2.5.0 Introduced.

Code of wc_coupons_enabled() WC 5.3.0

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