Hi,
Can you please paste the code here or create a support ticket on http://userswp.io/support?
Regards,
Patrik
Please provide solution afterwards here, as I wish to do same…
Hi,
Following is the code for removing invoices, subscriptions, billing address, notifications, privacy menus from the account tab:
add_filter('uwp_account_available_tabs', 'uwp_account_available_tabs_cb');
function uwp_account_available_tabs_cb($tabs){
unset($tabs['gp-invoices']);
unset($tabs['gp-subscriptions']);
unset($tabs['gp-edit-address']);
unset($tabs['notifications']);
unset($tabs['privacy']);
return $tabs;
}
Please remove/modify your previous code related to this if you have. You can remove the line from the code if you want to show any tab from the list.
Regards,
Patrik
And within uwp_account_available_tabs_cb() I can unset and register new tabs at the same time, right?
Yes! But you will need other hooks as per the doc link I shared for displaying the content of the tab and title of the tab.
Regards,
Patrik
I’m the original poster here. This entire conversation between author and a third person happened before my workday started. So I’m going to send in the code like you asked me in your original reply to me.
Hi,
We have got your ticket and we will reply there for your issue.
Regards,
Patrik