|

srfm_before_submission

Description

The ‘srfm_before_submission’ is an action hook that runs before the form submission process begins. You can use it to perform actions based on the submitted data or the form ID, like processing the data users entered or checking which form is being submitted.

Parameters

  • $submission_data (array) – The data submitted by the user.

Hook Source

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

Hook Usage

PHP
add_action(‘srfm_before_submission’, 'your_custom_function', 10, 1);

function your_custom_function( $form_before_submit_data )
{
   //Add code here
}

Hook Example

PHP
add_action(‘srfm_before_submission’, your_custom_function, 10, 1);

function your_custom_function( $form_before_submit_data )
{
$form_id      = $form_before_submit_data( ‘form_id’ );
          //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