Retrive order id having custom order number
-
Hi, how can i retrieve the order id having _wcj_order_number?
$order = wc_get_orders( array( ‘_wcj_order_number’ => $number ) );
foreach( $orders as $order ) {
// Get the Order ID
$order_id = $order->get_id();}Thx Luca
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Retrive order id having custom order number’ is closed to new replies.