|
/ Documentation /Developer Documentation/Filter Hooks/ srfm_form_submission_response

srfm_form_submission_response

Description

Filters the response array returned after a form submission is processed. Use it to add custom data to the response sent back to the front end. NOTE: The public docs reference srfm_form_submit_response but the code fires srfm_form_submission_response.

Parameters

  • $response (array) – The form submission response array.
  • $form_data (array) – The submitted form data.
  • $submission_data (array) – The processed submission data.

Filter Source

PHP
/**
* filter source (Free) inc/form-submit.php.
*/
$response = apply_filters( 'srfm_form_submission_response', $response, $form_data, $submission_data );

Filter Usage

PHP
add_filter( 'srfm_form_submission_response', 'my_callback', 10, 3 ); 
function my_callback( $response, $form_data, $submission_data ) { 
return $response; 
}

Filter Example

PHP
add_filter( 'srfm_form_submission_response', 'my_callback', 10, 3 ); 
function my_callback( $response, $form_data, $submission_data ) { 
return $response; 
}

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
Table of Contents
Scroll to Top