Woocommerce check if email already created order recently [closed]

You can create a helper function for that which qurries the orders for given email and created less than 10 mins ago.

function wpse407278_check_if_ordered_in_last_10_mins( $email ) {
    
    if ( !isset($email) || empty($email) ) {
        return false;
    }
    
    $args = array(
        'customer' => $email,
        'date_created' => '>' . ( time() - strtotime('-10 minutes') ),
    );
    $orders = wc_get_orders( $args );

    if ( empty( $orders ) ) {
        return false;
    }
    return true;
}

This will return true if the customer has orderd within last 10 minutes and false otherwise.