Created
August 8, 2024 12:13
-
-
Save matty0501/6583344fffc2a8c9fbb78579c32eac98 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Gravity Perks // Populate Anything // LMT URL Encode Characters | |
* https://gravitywiz.com/documentation/gravity-forms-populate-anything/ | |
* | |
* URL encode characters when populating a Live Merge Tag | |
*/ | |
// Update "123" to your form ID; and "4" to the field you are copying from. | |
add_filter( 'gppa_live_merge_tag_value_123_4', function( $value ) { | |
return urlencode( $value ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment