Creating forms programmatically
-
Currently looking into creating CF7 forms from another (homebrewn) plugin. It sems that most things things are in post_content AND postmeta: _form, _mail, _mail_2, _messages, _additional_settings. Which means just _locale is only in postmeta. Frontend and backend exclusively use the postmeta. Emptying the post_content and then copying the form results in the copy again having the content, so I assume any kind of saving action, either manually via the admin or copying, recreates the post_content.
So if I create a form programmatically, could I just leave the post_content empty?
And if so, out of curiosity, what’s the purpose of (re)creating and having the post_content this way?
- The topic ‘Creating forms programmatically’ is closed to new replies.