Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gravity Wiz // Gravity Forms Coupons // Allow Zero Amount Coupons
<?php
/**
* Gravity Wiz // Gravity Forms Coupons // Allow Zero Amount Coupons
* http://gravitywiz.com/
*/
add_filter( 'gform_gravityformscoupons_feed_settings_fields', function( $settings ) {
foreach( $settings as &$group ) {
foreach( $group['fields'] as &$field ) {
if( $field['name'] == 'couponAmountType' ) {
$field['validation_callback'] = null;
}
}
}
return $settings;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.