Support » Plugin: WooCommerce » Remove "Downloads" link from navigation

  • Resolved panconjugo

    (@panconjugo)


    Hi,

    Probably this is a really easy thing to fix but I’m not sure how to do it. How is it possible to remove the link “Downloads” from my account navigation? I have dashboard, orders, addresses… but I want to remove downloads because I am not gonna have downloadble products in my site.

    Thanks so much

    https://wordpress.org/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Claudio Sanches

    (@claudiosanches)

    Go to WooCommerce > Settings > Account and clean the downloads endpoint field.
    This will disable the downloads page.

    Thanks so much, that solved it.

    I would use the filter approach:

    add_filter( 'woocommerce_account_menu_items', 'custom_woocommerce_account_menu_items' );
    function custom_woocommerce_account_menu_items( $items ) {
    	if ( isset( $items['downloads'] ) ) unset( $items['downloads'] );
    	return $items;
    }

    Marco, can that be used to remove multiple items? Specifically the Account Details and Logout links, in addition to “Downloads”?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove "Downloads" link from navigation’ is closed to new replies.