WooCommerce - Remove downloads from menu in my account page WooCommerce - Remove downloads from menu in my account page wordpress wordpress

WooCommerce - Remove downloads from menu in my account page


Go to WooCommerce > Settings > Advanced and remove the entry for Downloads in the Account endpoints section, just leave it blank. And the menu will not be visible anymore.

remove downloads link


You will need this lightly customized this code snippet:

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

This code goes on function.php file of your active child theme (or theme) or in any plugin file.

This code is tested and working


[data-tab="downloads"] {    display: none!important;}