|
/ Documentation /Developer Documentation/Filter Hooks/ srfm_suretriggers_integration_data_filter

srfm_suretriggers_integration_data_filter

Description:

This filter returns an array of data needed to create dummy data for OttoKit integrations. Use it to prepare the necessary data before triggering actions in your integrations.

Parameters:

  • $data (array) – An array containing the required sample data for OttoKit integration
  • form_id (int) – The current form ID from which OttoKit is triggered.

Filter Source:

/**
* filter source
*/
apply_filters( ‘srfm_suretriggers_integration_data_filter’, $body, $form_id);

Filter Usage:

add_filter(‘srfm_suretriggers_integration_data_filter’, 'your_custom_function', 10, 2);

function your_custom_function( $body, $form_id )
{
   //Add code here
   return $body;
}

Filter Example:

add_filter(‘srfm_suretriggers_integration_data_filter’, your_custom_function, 10, 2);

function your_custom_function( $body, $form_id )
{
   if ( ! isset( $body['sample_response'] ) ) {
        return $body;
   }
   //Add code here
   return $body;
}
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