Last active
May 22, 2019 02:50
-
-
Save duplaja/62ad9b8720effd218e3efa788509f21e to your computer and use it in GitHub Desktop.
Get last Gravity Forms Entry Value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Form ID | |
$form_id = 1; | |
//Field ID | |
$field_id = 1; | |
//Pulls only the most recent entry | |
$paging = array( 'offset' => 0, 'page_size' => 1 ); | |
$entries = GFAPI::get_entries( $form_id, array(), null, $paging ); | |
//Value that we want | |
$value = $entries[0][$field_id]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment