• Resolved cinga

    (@cinga)


    Hi,

    I was using the following code tu remove the link in the “my account” menu :

    add_filter ( ‘woocommerce_account_menu_items’, ‘remove_my_account_links’ );
    function remove_my_account_links( $menu_links ){

    unset( $menu_links[‘subscriptions’] ); // subscriptions

    return $menu_links;
    }

    But since the last update it does not work anymore, could you help me to solve that ? Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @cinga

    We just tested the code snippet OK with the latest version of the plugin.

    add_filter('woocommerce_account_menu_items', 'webtoffee_remove_my_account_links');
    
    function webtoffee_remove_my_account_links($menu_links) {
    
        unset($menu_links['subscriptions']); // Subscriptions
        unset($menu_links['payment-methods']); // Payment methods
    
        return $menu_links;
    }

    Please try again and let us know if any issues.

    Thread Starter cinga

    (@cinga)

    Hi markhf,

    No it dosn’t work 🙁

    Hi @cinga
    Is it added in the active theme.? Please create a support ticket here, so we can check it in your site.

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

The topic ‘My account menu’ is closed to new replies.