Skip to content

Commit

Permalink
Create gppa-consent-field.php
Browse files Browse the repository at this point in the history
  • Loading branch information
spivurno authored Feb 6, 2022
1 parent 59ff529 commit f403635
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gp-populate-anything/gppa-consent-field.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Gravity Perks // Populate Anything // Support for Consent Field Description
* https://gravitywiz.com/documentation/gravity-forms-populate-anything/
*/
add_filter( 'gform_entry_field_value', function( $display_value, $field, $entry, $form ) {
if ( $field->type === 'consent' ) {
$display_value = gp_populate_anything()->live_merge_tags->replace_live_merge_tags_static( $display_value, $form, $entry );
}
return $display_value;
}, 10, 4 );

0 comments on commit f403635

Please sign in to comment.