Skip to content

Instantly share code, notes, and snippets.

@klhall1987
Created April 8, 2016 14:36
Show Gist options
  • Save klhall1987/1dc00893cc7889c6abb2df36dfa2f8f1 to your computer and use it in GitHub Desktop.
Save klhall1987/1dc00893cc7889c6abb2df36dfa2f8f1 to your computer and use it in GitHub Desktop.
<?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