Skip to content

Instantly share code, notes, and snippets.

@yellowstonebum
Last active February 12, 2019 23:28
Show Gist options
  • Save yellowstonebum/9080fcbbb71f012bb2e6590796203f69 to your computer and use it in GitHub Desktop.
Save yellowstonebum/9080fcbbb71f012bb2e6590796203f69 to your computer and use it in GitHub Desktop.
Gravity Forms - Example of adding an Entry from a snippet
$entry = array(
'form_id' => $form_id,
'date_created' => $today,
'is_starred' => 0,
'is_read' => 1,
'created_by' => $user_id,
'status' => 'active',
'payment_status' => 'Commission',
'6' => 'Admin',
'13' => $company_name,
'8' => $serial_8,
'11' => $fee,
'14' => $conf,
);
GFAPI::add_entry( $entry );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment