Reputation: 737
I have a wordpress website, in which there's a form page, based on ninja forms form plugin.
After a user submit the form, I'd like to process the input (preferably on server side) and display it right away (either by redirecting to another page, or on the same page).
How can I do that?
Upvotes: 2
Views: 3198
Reputation: 91
There is hook for this: ninja_forms_after_submission
add_action( 'ninja_forms_after_submission', 'my_ninja_forms_after_submission' );
function my_ninja_forms_after_submission( $form_data ){
// Do stuff.
}
Upvotes: 1