I need to create a product manually from php script (e.g. i'm developing a custom front-end form to insert products)
Googling i see some support forum create manually a post (using wp_insert_post function). I think this solution is not reliable (with a woocommerce update things may changes).
I need a wc function that does it for me, a sort of wc_create_product (like wc_create_order function).
I've found WC_API_Products::create_product()
seems to be what i need but on the web i could not find any additional documentation or usage example except the code comment.
Additionally this function is not listed on woocommerce official api doc at https://docs.woothemes.com/wc-apidocs/.
I need to know if this function is thought for internal use or maybe for external developer like me.
Does anyone have some information about it?
thanks
wp_insert_post()
– helgatheviking