Version: 5
CAUTION
️Version 5 of Gravity PDF does not have full support for Gravity Forms 2.5 and you should consider upgrading to version 6. If you cannot, version 5 will still function but have a degraded admin experience. Support and bug/security fixes will be provided until 27 April 2023.get_form_data()
Description
This API method will return the $form_data array for a particular entry.
Version
This method was introduced in Gravity PDF 4.4.
Parameters
entry_id | integer | required
- The Gravity Forms entry ID
Return
array | WP_Error
- Returns the full
$form_data
array on success, orWP_Error
on failure
Usage
/* Get the form data for the Entry #260 */
$entry = GPDFAPI::get_form_data( 260 );
if ( ! is_wp_error( $entry ) ) {
/* We can use the $entry array here */
}
Source Code
This method is located in api.php
.