Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1415664
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 5 years ago.
Improve this questionIs there a way to create a Contact7 Form programmatically?
I mean create the respective post type and fill the custom form fields for example as array and after all generate a shortcode for the created form?
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 5 years ago.
Improve this questionIs there a way to create a Contact7 Form programmatically?
I mean create the respective post type and fill the custom form fields for example as array and after all generate a shortcode for the created form?
Share Improve this question asked Aug 14, 2019 at 20:58 fefefefe 8943 gold badges14 silver badges34 bronze badges 1- I cannot find any documented API. Which would require you to dig into the plugin's methods and... – Matthew Brown aka Lord Matt Commented Aug 15, 2019 at 7:10
1 Answer
Reset to default 1I believe the forms are just post with the type wpcf7_contact_form
. Query one up and its meta to see how the form settings and other related stuff are saved. Or browse the plugin source.
You should then be able to insert new form posts with wp_insert_post()
.
本文标签: Create Contact7 Form programmatically
版权声明:本文标题:Create Contact7 Form programmatically 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745224431a2648543.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论