Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
//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;
},10,2);
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.