gform_coupons_post_delete_coupon

gform_coupons_post_delete_coupon

DescriptionUsageParametersPlacementSinceSource Code

Description
This JavaScript action fires after a coupon is deleted from a field, allowing further actions to be performed.
Usage
123gform.addAction( 'gform_coupons_post_delete_coupon', function ( code, formId ) {    // do stuff} );

Parameters

code string
The coupon code which was deleted.

formId int
The ID of the current form.

Placement
Your code snippet can be placed in a HTML field on your form or in a theme custom JavaScript file.
Since
This action was added in Gravity Forms Coupons Add-On version 2.9.
Source Code
This hook is located in DeleteCoupon() in gravityformscoupons/js/coupons.js.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注