Hello,
I have a specific use-case. We’re developing a custom internal plugin that has a dependency on the GravityForms plugin. (So, we assume and check that GForms is installed on any site that uses this plugin.)
We need a pre-configured form for our plugin to work correctly. What is the best way to create that form on plugin activation?
My guess is that I can use the Export to JSON feature from my development site, include that JSON as an asset in my plugin, and programmatically import the form on plugin activation.
Can someone point me to an example of how to import a form programmatically using PHP?
Follow-up question: how can I prevent a single form from being modified by any user?
Thanks!