|
/ Documentation /Developer Documentation/Action Hooks/ srfm_{provider}_{action} (dynamic)

srfm_{provider}_{action} (dynamic)

Description

A dynamic action fired by the WordPress-plugin native-integration provider to dispatch an integration action to a target plugin. Hook name built from provider slug and action, e.g. srfm_mailpoet_add_subscriber. (Pro only)

Parameters

$data (array) – The mapped field data to hand off to the integration.

Hook Source

PHP
/**
* hook source
 */
do_action( 'srfm_' . $action_name, $data );

Hook Usage

PHP
add_action( 'srfm_mailpoet_add_subscriber', 'my_callback', 10, 1 ); 
function my_callback( $data ) { 
// Process the mapped form data for your plugin/service. 
}

Hook Example

PHP
add_action( 'srfm_mailpoet_add_subscriber', 'my_callback', 10, 1 ); function my_callback( $data ) { 
// Process the mapped form data for your plugin/service. 
}
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