Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions gp-populate-anything/gppa-use-choice-value-instead-of-label.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/**
* Gravity Perks // Populate Anything // Use Choice Value Instead of Label in Admin
* https://gravitywiz.com/documentation/gravity-forms-populate-anything/
*
* By default, Populate Anything will display choice labels in the Entry List and Entry Detail views.
* This snippet reverts to the default Gravity Forms behavior of showing values instead for Populate Anything enabled fields.
*/
add_action('admin_init', function() {
remove_filter( 'gform_entry_field_value', array( gp_populate_anything(), 'entry_field_value' ), 20 );
remove_filter( 'gform_entries_field_value', array( gp_populate_anything(), 'entries_field_value' ), 20 );
});
Loading