gspc_coupon_addon

  1. Description
  2. Usage
  3. Parameters
  4. Since

Description

Filter the coupon addon output. Receives the formatted addon array for customization.

Usage

Applied globally

add_filter( 'gspc_coupon_addon', 'my_custom_function' );

Parameters

$coupon_addon array|null

The default coupon addon array.

$product_field_id string

The product field ID (e.g., “5|SAVE10”).

$product array

The product data from product_info.

$form array

The form object.

$entry array

The entry data.

$format string

Requested display format.

Since

  • 1.0-beta-2.46 Hook added.