Managing errors using the API
-
Hello,
I’m workng on a theme where I want to integrate Mailpoet subscription with a Forminator form.
For this I’m using ‘forminator_custom_form_before_save_entry’ and ‘forminator_custom_form_before_handle_submit’ actions. All the basics are working, ie I’m able to subscribe to the right list and catch all the errors/warnings from mailpoet when there are some.
For the moment, the form is just displaying message from Forminator (standard success and error messages) but I want to display the specific messages (ie, subscribed, already subscribed ..) got from mailpoet.
Where can I find some code sample that could help me to manage such things using the ‘forminator_custom_form_ajax_submit_response’ filter (or any more appropriate) ?
THanks for the help !
Regards.
Christian
- The topic ‘Managing errors using the API’ is closed to new replies.