Skip to content

Instantly share code, notes, and snippets.

@matty0501
Created August 8, 2024 12:13
Show Gist options
  • Save matty0501/6583344fffc2a8c9fbb78579c32eac98 to your computer and use it in GitHub Desktop.
Save matty0501/6583344fffc2a8c9fbb78579c32eac98 to your computer and use it in GitHub Desktop.
<?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