Monday, August 15, 2022
HomeWordPress Developmentplugins - Forminator wrap type information to xml after submission and add...

plugins – Forminator wrap type information to xml after submission and add error dealing with


I’ve created little script that wrap forminator type submission information to xml for third-party API after submission, however I want to determine the right way to present doable error messages e.g. if API connection failed or one thing else. Is that doable? I’ve created easy web page referred to as “success” the place person redirects after success type submission. I wish to present error on that web page.

That is pattern script that do one thing after submission (mu-plugins folder):

add_action( 'forminator_form_after_handle_submit', 'handle_forminator_data', 10, 3);

operate handle_forminator_data($form_id, $form_data) {

   error_log( print_r($form_data, true ) ); // I simply debug that I acquired $form_data, XML wrapping shouldn't be performed but

}

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments