با استفاده از کد زیر میتوانید لیست سفارش های کاربر وارد شده را دریافت کنید
$customer_orders = get_posts( array(
'numberposts' => -1,
'meta_key' => '_customer_user',
'meta_value' => get_current_user_id(),
'post_type' => wc_get_order_types(),
'post_status'...