Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save spivurno/bbf4a74013bac2c42f4bade5c6b73ace to your computer and use it in GitHub Desktop.
Save spivurno/bbf4a74013bac2c42f4bade5c6b73ace to your computer and use it in GitHub Desktop.
<?php
/**
* Gravity Perks // Populate Anything // Use Standard Merge Tags in Choice/Value Templates
* http://gravitywiz.com/documentation/gravity-forms-populate-anything/
*/
add_filter( 'gppa_process_template', function( $template_value, $field, $template, $populate, $object, $object_type, $objects ) {
return GFCommon::replace_variables( $template_value, GFAPI::get_form( $object->form_id ), (array) $object );
}, 10, 7 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment