Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1130349
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)?
1 Answer
Reset to default 0I 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
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)?
1 Answer
Reset to default 0I 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
本文标签: jsonTrigger action when submitting form with WPForms
版权声明:本文标题:json - Trigger action when submitting form with WPForms 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749081183a2313073.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论