Skip to content

Commit f403635

Browse files
authored
Create gppa-consent-field.php
1 parent 59ff529 commit f403635

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
/**
3+
* Gravity Perks // Populate Anything // Support for Consent Field Description
4+
* https://gravitywiz.com/documentation/gravity-forms-populate-anything/
5+
*/
6+
add_filter( 'gform_entry_field_value', function( $display_value, $field, $entry, $form ) {
7+
if ( $field->type === 'consent' ) {
8+
$display_value = gp_populate_anything()->live_merge_tags->replace_live_merge_tags_static( $display_value, $form, $entry );
9+
}
10+
return $display_value;
11+
}, 10, 4 );

0 commit comments

Comments
 (0)