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
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
Tailscale mesh — peer-to-peer connections between devices, coordination server
How to Install Tailscale on Ubuntu (Zero-Config Mesh VPN for Self-Hosters)
May 24, 2026
Caddy server — automatic HTTPS, 3-line Caddyfile vs 25-line nginx config
How to Install Caddy Server on Ubuntu (Automatic HTTPS, Drop-in nginx Alternative)
May 24, 2026
Cloudflare Tunnel — outbound-only connection from server, no inbound port forward
How to Install Cloudflare Tunnel on Ubuntu (Expose Local Services, No Port Forwarding)
May 24, 2026
WireGuard encrypted tunnel between server and clients with lock icons
How to Set Up WireGuard VPN on Ubuntu (Server, Linux Client, and iOS)
May 24, 2026

You Might Also Like

fail2ban shield blocking incoming brute-force probes, log file feeding the scanner
Server Management

How to Install fail2ban on Ubuntu (SSH, nginx, and WordPress Filters)

10 Min Read
CSS print styles shown in a clean print preview layout
Web Development

How to Add CSS Print Styles for Printer and Print Screen

7 Min Read
PHP convert string to uppercase — strtoupper and mb_strtoupper
Web Development

How to Convert a String to Uppercase in PHP

6 Min Read
Check if GD library is installed in PHP (phpinfo and extension_loaded)
Web Development

How to Check if GD Library Is Installed in PHP (3 Easy Methods)

5 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?