• Resolved regvdfregv

    (@regvdfregv)


    Hey I’m creating an order programmatically wc_create_order(); and i need to use the Sequential Order Numbers as _order_number and not the post_id. Is that possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support jlareauxskyverge

    (@jlareauxskyverge)

    The _order_number meta value will be automatically set when the post is inserted.

    You should be able to create the order and then retrieve the _order_number with the get_meta() function. As long as the wp_insert_post or woocommerce_process_shop_order_meta hook is fired, the _order_number will be set for you ??

    Does this answer your questions regarding the above?

    Thread Starter regvdfregv

    (@regvdfregv)

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create order programatically and change the order number’ is closed to new replies.