wc_coupons_enabled()

Check if coupons are enabled.


Description Description

Filterable.


Return Return

(bool)


Top ↑

Source Source

File: includes/wc-coupon-functions.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.