Support » Plugin: WooCommerce » Change order and rename My Account tabs

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can use this code adding it to functions.php

    
    	function custom_my_account_menu_items( $items ) {
    	    $items = array(
    	        //'dashboard'         => __( 'Dashboard', 'woocommerce' ),
    	        'orders'            => __( 'Orders', 'woocommerce' ),
    	        //'downloads'       => __( 'Gratisy do pobrania', 'woocommerce' ),
    	        //'edit-address'      => __( 'Moje dane', 'woocommerce' ),
    	        //'payment-methods'   => __( 'Payment Methods', 'woocommerce' ),
    	        'edit-account'      => __( 'Edycja konta', 'woocommerce' ),
    	        'customer-logout'   => __( 'Logout', 'woocommerce' ),
    					'kontakt'									=> __( 'Masz pytanie', 'woocommerce' ),
    					'kontakt-orders'									=> __( 'Zapytaj o zamówienie', 'woocommerce' ),
    	    );
    
    	    return $items;
    	}
    	add_filter( 'woocommerce_account_menu_items', 'custom_my_account_menu_items' );

    // before item disables it. Also believe changing order in the array will change order of the items in the tabs.
    I use this code on both Woocommerce 2.6.14 and 3.0.4.

    Moje dane is my translation so You can replace it with Your own.

    • This reply was modified 2 years, 4 months ago by  jurasjo.

    Great, thanks jurasjo. It works.
    I first tried to conceal dashboard with custom-css, but dashboard was still accessible via direct my-account/dashboard.
    Your method works.
    As a followup question, is it possible to change /my-account/orders url to be /my-account/my-new-url-instead-of-orders, so that url will be consistent with the new name of tab?
    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change order and rename My Account tabs’ is closed to new replies.