Skip to content

Commit e573bb3

Browse files
authored
gppa-change-fill-out-other-fields-text.php: Created sample snippet for using the gppa_missing_filter_text filter.
1 parent a81805b commit e573bb3

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 // Change "Fill Out Other Fields" Text
4+
* https://gravitywiz.com/documentation/gravity-forms-populate-anything/
5+
*/
6+
add_filter( 'gppa_missing_filter_text', function( $value, $field ) {
7+
if ( $field->id = 4 ) {
8+
$value = 'Use Search Field Above to Get Results'
9+
}
10+
return $value;
11+
}, 10, 2 );

0 commit comments

Comments
 (0)