Search code examples
phpmysqlwordpressformsgravity-forms-plugin

How to create an entry with PHP in Wordpress Gravity Forms


There is a form on a site that I am working on which I would like to be able to submit entries for from the back-end with PHP. The gravity forms mysql tables should be updated exactly the same way as if a user submitted an entry from the HTML form. Does Gravity forms provide a class to do this?


Solution

  • Absolutely. The Gravity Forms API is your friend here, and you'll want to use the add_entry function.