[insert_php]
$query = new WC_Order_Query( array(
‘limit’ => 10,
‘orderby’ => ‘date’,
‘order’ => ‘DESC’,
‘return’ => ‘ids’,
) );
$orders = $query->get_orders();

[/insert_php]

test