Create a pod with PHP

[ad_1]

Dear,

I am building a site where users will be able to register new CPT/POD.

Therefore, I would like to create new PODS with PHP.

Is there a way to do this ?

I did not find a function to create a new POD.

I tried the duplicate() function to duplicate an empty POD (and then add fields) but it seems to work only on POD items.

I also tried to use WP-CLI to create a POD. It works but sometimes command lines are not ending (without any previsibility) and I have to kill these processess… which is not a behavior that is wanted… 🙂

Thank you very much for your help !

Xerviami

  • This topic was modified 5 hours, 32 minutes ago by xerviami.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer