wc_get_cart_coupon_types

Coupon types that apply to the cart as a whole.

Description

(array) wc_get_cart_coupon_types(); 

Controls which validation rules will apply.

Returns (array)


Usage

  1. if ( !function_exists( 'wc_get_cart_coupon_types' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-coupon-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_get_cart_coupon_types(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-coupon-functions.php  
  1. function wc_get_cart_coupon_types() { 
  2. return (array) apply_filters( 'woocommerce_cart_coupon_types', array( 'fixed_cart' ) );