Dev – wp_insert_post | WordPress.org

[ad_1]

This is a developer to developer question, probably more fit for github. I also coded a way to merge orders but I have been plagued by a bug on our live environment which I just can’t seem to fix: Sometimes merged orders are combined with random client orders.

When looking at your code to see if you maybe had a smart idea how to approach some things, I noticed that you commented out wc_create_order function and used wp_insert_post instead. Is there any reason for it?

Nothing else struck me as wildly different from how I did it…

 

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