Before starting the tutorial, I will explain:
What is Gravity Forms?
Gravity Forms It is a plugin for WordPress that allows you to quickly design and create forms for WordPress using an intuitive visual form editor that is very similar to the interface of the new WordPress editor (Gutenberg).
However, once this concept is clarified, we can proceed to:
How to do it?
Well, Gravity Forms is a very good form plugin that allows us WordPress developers to speed up development times with its plugin. Some time ago, I developed a solution for a client and needed to register the data obtained from Gravity Forms in an external database. To solve this, I used the following code; simply add the following code to the functions.php child theme file:
<?php
Conclusion
This code is very useful when some type of data processing is to be performed, or when it is necessary to query the data outside of WordPress with a web application built using another technology. Additionally, it can be an alternative to avoid overloading the WordPress database if thousands of records are planned to be created.
Still have doubts?
Do you need help with a web project? Don't hesitate to contact me. I develop complete and customized solutions with WordPress and PHP, using modern tools and processes, HTML, CSS, SCSS, PHP, JavaScript, Bootstrap, and more. Ready? Send me a message and let's talk about your web project!
