• Resolved hexxcode

    (@hexxcode)


    Hello,

    I want to remove the

    – Notifications
    – Data protection

    Section/tab from the account page.

    How can I do this?

    Thank you very much in advance.

    best regards

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Thread Starter hexxcode

    (@hexxcode)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Items from Account page’ is closed to new replies.