Я хочу запросить все заказы, которые превышают данный номер заказа для клиента? Я попробовал следующий код, но безуспешно: ....
$all_orders = get_posts(array(
'numberposts' => -1,
'meta_key' => '_customer_user',
'meta_value' => customerId,
'post_type' => wc_get_order_types(),
'post_status' => array('wc-pending', 'wc-processing', 'wc-completed'),
'meta_query' => array(
'key' => 'ID',
'value' => afterOrderNumber,
'type' => 'numeric',
'compare' => '>='
)
));
.... Пожалуйста, помогите.