How to disable downloadable product functionality in WooCommerce

By Claudio Sanches (@claudiosanches): Go to WooCommerce > Settings > Account and clean the downloads endpoint field. This will disable the downloads page.


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

Used this in place of the above


I got this answer here By Christophvh .

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. Just take a look my Attached Image.

enter image description here