Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.