|

srfm_before_email_send

Description:

This hook fires before an email is sent and can be used to perform actions based on form data, submission data, parsed data, and the email item.

Parameters:

  • $parsed – Array,
  • $submission_data – Array,
  • $item – Array,
  • $form_data – Array

Hook Source:

/**
* hook source
*/
do_action( ‘srfm_before_email_send’, $form_before_submit_data );

Hook Usage:

add_action(‘srfm_before_email_send’, 'your_custom_function', 10, 4);

function your_custom_function( $parsed, $submission_data, $item, $form_data )
{
   //Add code here
}

Hook Example:

add_action(‘srfm_before_email_send’, 'your_custom_function', 10, 4);

function your_custom_function( $parsed, $submission_data, $item, $form_data )
{
   $parsed['admin_email'] = '[email protected]
   //Add code here
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
%title %title
On this page
Scroll to Top