downloads remove woocommerce code example
Example 1: remove downloads tab woocommerce
add_filter( 'woocommerce_account_menu_items', 'custom_remove_downloads_my_account', 999 );
function custom_remove_downloads_my_account( $items ) {
unset($items['downloads']);
return $items;
}
Example 2: completely remove woocommerce
define( 'WC_REMOVE_ALL_DATA', true );