|

srfm_after_email_send

Description

This hook fires after 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

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

Hook Usage

PHP
add_action(‘srfm_after_email_send’, 'your_custom_function', 10, 4);

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

Hook Example

PHP
add_action(‘srfm_after_email_send’, 'your_custom_function', 10, 4);

function your_custom_function( $parsed, $submission_data, $item, $form_data )
{
   wp_send_json_success();
   //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
On this page
Scroll to Top