Created
April 8, 2016 14:36
-
-
Save klhall1987/1dc00893cc7889c6abb2df36dfa2f8f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Are all these args passed in from Ninja Forms? | |
//Is the data array build by Ninja Forms? | |
// I am having trouble figuring out how to correctly use this process function in my actions.php | |
public function process( $action_settings, $form_id, $data ) | |
{ | |
$list = $action_settings[ 'newsletter_list' ]; | |
$double_opt_in = $action_settings[ 'double_opt_in' ]; | |
$data[ 'actions' ][ 'emma' ][ 'list' ] = $list; | |
$data[ 'actions' ][ 'emma' ][ 'settings' ] = $action_settings; | |
$data[ 'actions' ][ 'emma' ][ 'merge_vars' ] = $merge_vars; | |
return $data; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment