How7o
  • Home
  • Tools
  • Prank Screens
  • Learn
  • Blog
  • Contact
Reading: How to Display Orders Instead of Dashboard on the WooCommerce My Account Page
Share
How7oHow7o
Font ResizerAa
  • OS
Search
  • Home
  • Tools
  • Prank Screens
  • Learn
  • Blog
  • Contact
Follow US
© 2024–2026 How7o. All rights reserved.
How7o > Free Laravel, PHP, WordPress & Server Tutorials > Web Development > How to Display Orders Instead of Dashboard on the WooCommerce My Account Page
Web Development

How to Display Orders Instead of Dashboard on the WooCommerce My Account Page

how7o
By how7o
Last updated: May 10, 2026
7 Min Read
WooCommerce orders as My Account default — menu filter + redirect
SHARE

WooCommerce replace dashboard with orders on the My Account page takes two small code snippets: the woocommerce_account_menu_items filter to drop (or reorder) the Dashboard tab, and a parse_request redirect so users landing on /my-account/ go straight to /my-account/orders/. The default dashboard is usually a mostly-empty page that most stores have no use for — this guide makes the My Account landing spot actually useful.

Contents
  • TL;DR
  • Step 1 — Drop Dashboard from the menu
  • Step 2 — Redirect the account root
  • Alternative — just reorder, don’t redirect
  • Frequently asked questions
  • Related guides
  • References

Last verified: 2026-04-23 on WooCommerce 9.x with WordPress 6.5. Originally published 2024-03-23, rewritten and updated 2026-04-23.

TL;DR

// 1. Remove the Dashboard menu item (and rename Orders to "My Orders")
add_filter( 'woocommerce_account_menu_items', function ( $items ) {
    unset( $items['dashboard'] );
    $items['orders'] = __( 'My Orders', 'how7o' );
    return $items;
}, 99 );

// 2. Redirect /my-account/ to /my-account/orders/
add_action( 'parse_request', function ( $wp ) {
    if ( is_admin() || ! is_user_logged_in() ) {
        return;
    }
    if ( $wp->request === 'my-account' ) {
        wp_safe_redirect( site_url( '/my-account/orders/' ) );
        exit;
    }
} );

Step 1 — Drop Dashboard from the menu

add_filter( 'woocommerce_account_menu_items', function ( $items ) {
    unset( $items['dashboard'] );
    $items['orders'] = __( 'My Orders', 'how7o' );
    return $items;
}, 99 );

The filter passes the items array keyed by slug — dashboard, orders, downloads, edit-address, edit-account, customer-logout. unset($items['dashboard']) removes the tab entirely; after the removal, Orders is the first remaining tab. The relabel ($items['orders'] = 'My Orders') is a personal-taste touch — skip it if you want the stock “Orders” label.

Priority 99 makes sure this filter runs after any plugin that might inject its own items, so our unset reliably catches the dashboard even when other code is modifying the same array. See why priority matters with WordPress hooks for the general pattern.

Step 2 — Redirect the account root

add_action( 'parse_request', function ( $wp ) {
    if ( is_admin() || ! is_user_logged_in() ) {
        return;
    }

    if ( $wp->request === 'my-account' ) {
        wp_safe_redirect( site_url( '/my-account/orders/' ) );
        exit;
    }
} );

This catches users who land on /my-account/ from login redirects, footer links, or “Account” links in navigation. The parse_request hook fires before WordPress has resolved the template, so the redirect is cheap — no template rendering wasted.

The is_user_logged_in() check is important: without it, guests hitting /my-account/ (which normally shows the login form) would get redirected to /my-account/orders/, which redirects back to /my-account/ for anonymous users — an infinite loop. Only redirect when the user is logged in.

woocommerce replace dashboard with orders — filter removes menu item + parse_request redirects to orders

Alternative — just reorder, don’t redirect

add_filter( 'woocommerce_account_menu_items', function ( $items ) {
    // Move Orders to the top without removing Dashboard
    return array(
        'orders'          => __( 'Orders',        'how7o' ),
        'dashboard'       => __( 'Dashboard',     'how7o' ),
        'downloads'       => __( 'Downloads',     'how7o' ),
        'edit-address'    => __( 'Addresses',     'how7o' ),
        'edit-account'    => __( 'Account',       'how7o' ),
        'customer-logout' => __( 'Logout',        'how7o' ),
    );
}, 99 );

If you don’t want to remove Dashboard entirely — it’s where some WooCommerce plugins show notifications — just reorder the array. WooCommerce renders menu items in the array’s iteration order, so putting orders first is enough to make it the first tab.

Frequently asked questions

How do I woocommerce replace dashboard with orders on My Account?

Two moves: remove the Dashboard menu item via the woocommerce_account_menu_items filter, and redirect /my-account/ to /my-account/orders/ via a parse_request hook. The filter makes Orders appear first in the sidebar; the redirect catches users who land on the account root from a login redirect.

Can I reorder menu items without removing Dashboard?

Yes — return a new associative array from woocommerce_account_menu_items with the keys in your preferred order. The order WooCommerce renders is the array’s iteration order, so return ['orders' => ..., 'dashboard' => ..., 'edit-address' => ...]; puts Orders first without removing anything. The unset() + reassignment pattern is just a quick way to both remove and reorder in one callback.

Why hook parse_request for the redirect?

parse_request fires early — before WordPress has fully resolved the template — so you can redirect without the target page doing any rendering work. Hooking template_redirect also works but fires a few steps later. For a straight URL-to-URL redirect, parse_request is the lighter option.

What if I want to redirect guests to login instead?

Drop the is_user_logged_in() check — with it, the redirect only fires for logged-in users (the dashboard is meaningless for guests anyway because WooCommerce shows the login form). For a custom guest flow, add an else branch that redirects anonymous users to a landing page or signup flow.

Does this break the Dashboard endpoint entirely?

Yes — if you remove the Dashboard menu item and redirect the account root to Orders, there’s no way for a user to reach the Dashboard tab (though its URL still exists). If anything still links to /my-account/dashboard/, update those links to point at /my-account/orders/ too, or skip the redirect and only do the menu reordering.

Related guides

  • How to Rename Menu Items on the WooCommerce My Account Page — sibling customization via the same filter.
  • How to Add a Link or Button After the Login Form in WooCommerce — other My Account tweaks.
  • How to Remove Checkout Fields in WooCommerce — similar filter-driven simplification.
  • How to Display Different Menus to Logged-In Users in WordPress — login-state nav swap.

References

WooCommerce My Account endpoints: woocommerce.com/document/woocommerce-endpoints-2-1.

TAGGED:phpWooCommercewordpress

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Previous Article WooCommerce auto add to cart on visit — template_redirect hook and cart dedup How to Automatically Add a Product to Cart on Visit in WooCommerce
Next Article WooCommerce product view counter — meta-based counter with increment and display hooks How to Display a Product View Counter in WooCommerce Without a Plugin
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

FacebookLike
XFollow
PinterestPin
InstagramFollow
Most Popular
Laravel Eloquent ORM — a model class mapping to a database table with query methods
Laravel Eloquent ORM: The Complete Guide to Querying Your Database
June 16, 2026
Set vi as the default editor in Ubuntu — a terminal opening the vim editor
How to Set vi (Vim) as the Default Editor in Ubuntu
June 8, 2026
rsync says ALL DONE but files are missing — a terminal showing ALL DONE next to an empty folder
rsync Says “ALL DONE” but Files Are Missing: How to Verify
June 8, 2026
Migrate a website to a new server with rsync — files copying from an old server to a new one over SSH
How to Migrate a Website to a New Server With rsync
June 8, 2026
Bun runtime — faster JS toolkit replacing npm in Laravel projects
How to Install Bun Runtime on Ubuntu (And Use It in a Laravel Project)
May 24, 2026

You Might Also Like

Deleting a Laravel user cascades to remove related posts, photos, and notifications
Web Development

How to Delete Related Records in Laravel Eloquent

6 Min Read
Laravel Eloquent delete record — trash-bin icon next to User::destroy code snippet
Web Development

How to Delete a Record with Laravel Eloquent (4 Methods)

6 Min Read
Replace Broken Images Automatically with JavaScript
Web Development

Replace Broken Images Automatically with JavaScript (and jQuery)

5 Min Read
Submit a form with jQuery
Web Development

How to Submit a Form Using jQuery

4 Min Read
How7o

We provide tips, tricks, and advice for improving websites and doing better search.

Tools

  • Age Calculator
  • Word Counter
  • Image Upscaler
  • Password Generator
  • QR Code Generator
  • See all tools→

Pranks

  • Fake Blue Screen Prank
  • Hacker Typer
  • Fake iMessage Generator
  • Windows XP Crash Prank
  • Windows 11 Update Prank
  • See all prank screens →

Company

  • About Us
  • Blog
  • Contact
  • Privacy Policy
  • Terms of Service
  • Sitemap
© 2024–2026 How7o. All rights reserved.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?