This code creates a new post in the WordPress database with post type ‘shop_order’, post title ‘Order #12345’, post status ‘wc-processing’, and ping status ‘closed’. The post ID is stored in the $order_id variable.
Was this code snippet helpful?
YesNo