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


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.


Roshan Chapagain 2 years 2021-03-23T23:36:23-05:00 0 Answers 0 views 0

Leave an answer