wc_get_coupon_types

Get coupon types.

Description

(array) wc_get_coupon_types(); 

Returns (array)


Usage

  1. if ( !function_exists( 'wc_get_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_coupon_types(); 
  7.  

Defined (1)

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

/includes/wc-coupon-functions.php  
  1. function wc_get_coupon_types() { 
  2. return (array) apply_filters( 'woocommerce_coupon_discount_types', array( 
  3. 'percent' => __( 'Percentage discount', woocommerce ),  
  4. 'fixed_cart' => __( 'Fixed cart discount', woocommerce ),  
  5. 'fixed_product' => __( 'Fixed product discount', woocommerce ),  
  6. ) );