Gravity Perks // GP Post Content Merge Tags // Get Confirmation URL for Current User
<?php
/**
* Gravity Perks // GP Post Content Merge Tags // Get Confirmation URL for Current User
* http://gravitywiz.com/documentation/gravity-forms-post-content-merge-tags/
*/
function gppcm_get_confirmation_url_for_current_user( $form_id ) {
$entries = GFAPI::get_entries( $form_id, array( 'field_filters' => array( 'created_by' => get_current_user_id() ) ) );
$url = gform_get_meta( $entries[0]['id'], 'gppcmt_url' );
return $url;
}
// Example of how this function would be called.
gppcm_get_confirmation_url_for_current_user( 123 );