Hi,
You can use the following code in the functions.php file of the currently active theme or via the Code Snippets plugin to unset the tabs in account page:
add_filter('uwp_account_available_tabs', 'uwp_account_available_tabs_cb');
function uwp_account_available_tabs_cb($tabs){
unset($tabs['notifications']);
unset($tabs['data-protection']);
return $tabs;
}
I am not sure about which “Data protection” tab you see there but if it is from WooCommerce addon then also you can unset using the above code just make sure you use the proper slug example ‘data-protection’.
Regards,
Patrik
Hello,
thank you very much. Isn’t there an easy way without editing php files?
Thank you
You can use the Code Snippets plugin which will allow adding the PHP snippet from the backend instead of modifying the PHP file. There is no setting for this so this can be done using filter only as I provided in the last reply.
Regards,
Patrik