spivurno
2/18/2015 - 12:16 AM

Gravity Perks // GP Unique ID // Merge Tag Support for Prefix and Suffix Settings

Gravity Perks // GP Unique ID // Merge Tag Support for Prefix and Suffix Settings

<?php
/**
 * Gravity Perks // GP Unique ID // Merge Tag Support for Prefix and Suffix Settings
 * https://gravitywiz.com/documentation/gp-unique-id/
 * 
 * DEPRECATED! This snippet is no longer required. Merge tags are automatically supported with GP Unique ID v1.3.
 */
add_filter( 'gpui_unique_id', 'gw_unique_id_replace_merge_tags', 10, 2 );
function gw_unique_id_replace_merge_tags( $unique, $form_id ) {
	return GFCommon::replace_variables( $unique, GFAPI::get_form( $form_id ), GFFormsModel::get_current_lead(), false, true, false, 'text' );
}