• Resolved tnn

    (@noelforge)


    Hi everyone.

    I noticed that WooCommerce was automatically inserting tabs ( Shipping, Tickets, Inquiries… ) into my UM – Account. I already have a page for that, and I would like to hide these tabs.

    View post on imgur.com

    I have not been able to find anything in “ultimate-member/includes/core/class-account.php”, and I was not able to hide these using CSS because the menu seems to be some kind of Ajax.

    This is really unsettling, do you guys have an idea on how to get rid of these ?

    Thanks…

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @noelforge

    Please try this code snippet:

    add_filter( 'um_account_page_default_tabs_hook', function($tabs){
    
    	unset($tabs[210]);
    	unset($tabs[220]);
    	unset($tabs[250]);
    	
    	return $tabs;
    }, 101 );
    Thread Starter tnn

    (@noelforge)

    Hi there and thanks a lot for your answer !

    I tried your code, and it only deleted the “Shipping address” tab.

    So, I tried random numbers from 200 to 300.

    “unset($tabs[230]);” successfully deleted the “My Orders” tab.
    “unset($tabs[280]);” successfully deleted both “Inquiries and Support Tickets” tabs.

    Unfortunately I don’t know what the logic is behind these numbers ?
    But it worked, and for that I thank you a lot, and I hope this will help other people as well.

    Thanks again and have a nice day 🙌🏻 !

    @noelforge

    Unfortunately I don’t know what the logic is behind these numbers ?

    Do you have the UM WooCommerce Extension Plugin installed and active?

    Thread Starter tnn

    (@noelforge)

    Hi.

    Yes I have it installed too.
    But I was wondering the logic behind the numbers “200, 230, 240” etc…

    I found the right numbers by luck, but there has to be some logic behind it.

    @noelforge

    The Plugin Supporter @aswingiri probably took the Tab indexes from the UM WooCommerce paid extension source code for use in the code snippet.

    How to enable/disable these Account Tabs might be found while reading the UM User Documentation so it’s not a PHP coding issue at all.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    @noelforge It appears that this relates to a commercial extension for this plugin, so please use their official support channel. We feel they are best equipped to support their products.

    https://ultimatemember.com/support/

    Commercial products are not supported in these forums.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘How to delete / hide certain tabs in “My Account” ?’ is closed to new replies.