Skip to content

Commit 3ca6389

Browse files
authored
gppa-use-choice-value-instead-of-label.php: Added new snippet.
1 parent 3053ec0 commit 3ca6389

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
/**
3+
* Gravity Perks // Populate Anything // Use Choice Value Instead of Label in Admin
4+
* https://gravitywiz.com/documentation/gravity-forms-populate-anything/
5+
*
6+
* By default, Populate Anything will display choice labels in the Entry List and Entry Detail views.
7+
* This snippet reverts to the default Gravity Forms behavior of showing values instead for Populate Anything enabled fields.
8+
*/
9+
add_action('admin_init', function() {
10+
remove_filter( 'gform_entry_field_value', array( gp_populate_anything(), 'entry_field_value' ), 20 );
11+
remove_filter( 'gform_entries_field_value', array( gp_populate_anything(), 'entries_field_value' ), 20 );
12+
});

0 commit comments

Comments
 (0)