Add Contact Form form using wp_insert_post
-
How can I correctly add Contact Form using php wp_insert_post?
While looking in database, posts (forms) with post_type ‘wpcf7_contact_form’ contains post_content with many linebreaks with form’s and response’s translations in one place. Additional, the same form settings is in its post_meta.
So, is it possible to add forms (needed for ex. on theme activation) with wp_insert_post code? How it can be done safe and correctly?
Thank you!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add Contact Form form using wp_insert_post’ is closed to new replies.