How to change any menu item label from My Account Menu section in woocommerce

add_filter ( 'woocommerce_account_menu_items', 'amit_customize_account_menu_items' );
 function amit_customize_account_menu_items( $menu_items ){
     
    // Chnage the Menu Item name text
    $menu_items['dashboard'] = 'My Account'; // Rename "Dasboard" in My Account menu to 'My Account'
    $menu_items['orders'] = 'My Orders'; // Rename 'Ordrers' to 'My Orders'
    $menu_items['edit-address'] = 'My Addresses'; //Rename 'Addresses' to 'My Addresses'
    return $menu_items;
} 

Share this post:

Share on facebook
Share on twitter
Share on linkedin
Share on email
Amitpal Singh
Amitpal Singh
Freelance website and application developer. Working from Sangrur Punjab in India.
Follow Amitpal on:

Register

Create your account and post ad