32 add_filter(
'gravityview/edit_entry/field_blocklist', array( $this,
'edit_entry_field_blocklist' ), 10, 2 );
33 add_filter(
'gravityview/edit_entry/field_value_coupon', array( $this,
'edit_entry_field_value' ), 10, 3 );
54 $hide_coupon_fields = apply_filters(
'gravityview/edit_entry/hide-coupon-fields', $has_transaction_data );
56 return (
bool) $hide_coupon_fields;
64 _deprecated_function( __METHOD__,
'2.14',
'GravityView_Plugin_Hooks_Gravity_Forms_Coupon::edit_entry_field_blocklist' );
81 $blocklist[] =
'coupon';
106 $entry = $Edit_Entry_Render->entry;
107 $form = $Edit_Entry_Render->form;
109 $coupon_codes = gf_coupons()->get_submitted_coupon_codes(
$form,
$entry );
112 if ( ! $coupon_codes ) {
117 $discounts = gf_coupons()->get_coupons_by_codes( $coupon_codes,
$form );
127 $_POST = ! isset( $_POST ) ? array() : $_POST;
128 $_POST[
'gf_coupons_' .
$form[
'id'] ] = json_encode( (array) $discounts );
129 $_POST[
'input_' .
$field->id ] = implode(
',', $coupon_codes );
static entry_has_transaction_data( $entry=array())
Check if an entry has transaction data.
if(gravityview() ->plugin->is_GF_25()) $form
Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles...