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.
@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.