php - In the Ninja Forms Webhooks extension, is it possible to intercept the submit without editing the plugin's process() function? -


i attempting edit form's submission variables before submitted action url. able accomplish want changing

$args[ $vars['key'] ] = $value; 

in initial foreach loop of process() function in action-webhooks.php

if (is_array ($value)) {     $args[ $vars['key'] ] = implode(';', $value); } else {     $args[ $vars['key'] ] = $value; } 

this bad solution since code overwritten if plugin updated. there action or filter can use accomplish own code? thanks.

from can tell, looks using ninja forms processing method can set variables before form processed.

global $ninja_forms_processing;  //get form id $form_id = $ninja_forms_processing->get_form_id();  //the id of form want check $form_to_check = 5;  if($form_id == 5) {     //what user entered     $user_value = $ninja_forms_processing->get_field_value( 3 );      if(is_array($user_value))     {         //set value want         $new_value = implode(';', $user_value);         $ninja_forms_processing->update_field_value( 3, $new_value );     } }  

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -