Created
July 14, 2021 19:45
-
-
Save jorpdesigns/88d6ad51f6ab7e81e8ee187bf8a53c27 to your computer and use it in GitHub Desktop.
Snippet to add custom value to Gravity Form field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'gform_save_field_value_4_10', 'custom_field_value', 10, 5 ); // form id = 4, field id = 10 | |
| function custom_field_value() { | |
| return 'New Value'; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment