plugins – How to get data from a form on a wordpress site?

Question

If the form is created with a plugin (like Contact Form 7 or Gravity Forms) you can use the available hooks:

CF7: wpcf7_before_send_mail

GF: gform_after_submission

This should cover the majority of WordPress Websites. On both hooks you can access the transmitted form fields and send them to your own script.

If you simply want to access all possible forms and Plugins i only See the solution of writing a jQuery script that sends the data via AJAX but i would not recommend this approach as i think it could easily lead to conflicts.

Reference:
http://hookr.io/plugins/contact-form-7/4.7/hooks/#index=a
https://docs.gravityforms.com/gform_after_submission/

0
Roshan Chapagain 4 weeks 2021-03-23T23:36:23-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse