How to Display Orders Instead of Dashboard in WooCommerce My Account page?

In my WooCommerce store, and I want to make it easier for my customers to access their orders. Right now, when they login to their account, they are taken to the dashboard by default, and in the dashboard, it’s always empty. I don’t find any necessity for that page. I want them to be directed to their orders page. How can I set up WooCommerce to display the orders page instead of the dashboard when customers log in to their accounts? In simple term I want to show order by default in my-account page.

If you think the dashboard is useless why not remove the menu and redirect to order page. Kill two birds with one stone.

1. Remove Dashboard from My Account:

 // Remove Dashboard from My Account
 add_filter( 'woocommerce_account_menu_items', function($items) {
    unset($items['dashboard']); // Remove downloads item
    $items['orders'] = __('My Orders', 'textdomain'); // Changing label for orders
    return $items;
}, 99, 1 );

Using the woocommerce_account_menu_items filter, the “Dashboard” link is removed and from the order menu is renamed as “My Orders.”, Now it should be the first menu item.

2. Redirect My Account to Orders:

// Redirect My Account to Orders to My Account
add_action( 'parse_request', function($wp){
    if ( !is_admin() && is_user_logged_in() ) {
        if ( $wp->request === 'my-account' ) {
            wp_redirect( site_url( '/my-account/orders/' ) );
            exit;
        }
    }
}, 10, 1 );

And with this snippet the users are redirected from the “Dashbaord” page to the “My Orders” page.