diff --git a/gp-easy-passthrough/gpep-passthrough-consent-field.php b/gp-easy-passthrough/gpep-passthrough-consent-field.php new file mode 100644 index 000000000..20dcd5a9f --- /dev/null +++ b/gp-easy-passthrough/gpep-passthrough-consent-field.php @@ -0,0 +1,45 @@ +get_entry_for_token( $token ) : array(); + + if ( empty( $entry ) ) { + return $form; + } + + foreach ( $form['fields'] as $field ) { + if ( $field->type == 'consent' && $field->id == $target_consent_field_id && rgar( $entry, $source_consent_field_id . '.1' ) == '1' ) { + ?> + +