autoship_coupon_types_by_code (filter)

 (src/coupons.php) This filter can be used to adjust how QPilot Coupon Types are converted to WooCommerce coupon types. Takes the coupon code $type (array) as a parameter.

Code

$codes = apply_filters( 'autoship_coupon_types_by_code', array(
    'ReduceSubtotalByPercentage'  => 'percent',
    'ReduceSubtotalByAmount'      => 'fixed_cart',
    'ReduceShippingByAmount'      => NULL,
    'SetShippingToAmount'         => NULL
  ) );

Included in these Functions

autoship_get_coupon_type_by_code ()