Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionA customer of mine uses the WPForms plugin to create a front-end form. When the form is submitted the entry goes in de database (in a separate table wp_wpform_entries or something like that, all handled by the plugin).
But they also want to post all data to another website in JSON format. Is there a way to know the form is submitted or is the best way to use the add_filter('wp_insert_post)?
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionA customer of mine uses the WPForms plugin to create a front-end form. When the form is submitted the entry goes in de database (in a separate table wp_wpform_entries or something like that, all handled by the plugin).
But they also want to post all data to another website in JSON format. Is there a way to know the form is submitted or is the best way to use the add_filter('wp_insert_post)?
I would suggest you to use the action wpforms_process_entry_save
.
add_action('wpforms_process_entry_save', 'your_submit_json_function', 10, 4);
Check the actions
list here