Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//Add email data to entry api response
add_filter( 'caldera_forms_api_entry_data', function ($data,\Caldera_Forms_Entry $entry){
$form = $entry->get_form();
$mailData = ( new \calderawp\WordPressPlugin\MailData($entry->get_entry_id(), $form ) )->getEmailData();
$data[ 'mailData'] = $mailData;
return $data;
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.