Вы можете получить любой тип пользовательских заказов, проверив 'post-status' таких заказов:
// specify the type of order you need. (delete any item that you dont need)
$order_status = array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-cancelled', 'wc-refunded', 'wc-failed');
$user_orders= wc_get_orders( array(
'meta_key' => '_customer_user',
'meta_value' => $current_user->ID,
'post_status' => $order_status,
'numberposts' => -1,
) );
, затем проверьте результат и сделайте что-нибудь ...
if (!empty($user_orders)){
//your code
}