How to Hide Downloads From My Account WooCommerce

WooCommerce Hide Downloads From My AccountWith the easy accessibility of eCommerce platforms like WooCommerce, many entrepreneurs from all over the world are venturing out into the online business. It is important to note that selling physical products comes with its share of hassles, such as inventory management and shipping fulfillment.

Alternatively, selling digital downloads might sound less complicated in such a scenario. However, there are quite a few technical challenges like deciding how to present the products and how you can set download limits according to the product type.

WooCommerce Hide Downloads From My Account

This brief tutorial focuses on how you can hide downloads form the ‘My Account’ page. You might not be selling digital downloads on your store, and you may want to remove this feature so that customers are not confused when they access their account page.

WooCommerce, by default, has comprehensive set up options for digital downloads. When setting up digital products on your WooCommerce store, the first step is to configure the settings of the digital product. This can be done by going to WooCommerce > Settings > Products > Downloadable Products.Downloadable product settings

With all that said, let us look at how you can hide downloads from My Account Page. This is how it is displayed on the front end:Downloads in my account page

Steps to Hide Downloads From My Account Page

Here are the steps that you need to follow:

  1. Log into your WordPress site and access the Dashboard as the admin user.
  2. From the Dashboard menu, click on Appearance Menu > Theme Editor Menu. When the Theme Editor page is opened, look for the theme functions file to hide downloads from the My Account Page.
  3. Add the following code to the functions.php file:
function njengah_my_account_menu_items( $items ) {

    unset($items['downloads']);

    return $items;

}

add_filter( 'woocommerce_account_menu_items', 'njengah_my_account_menu_items' );
  1. Go to WooCommerce > Settings > Advanced and remove the entry for Downloads in the Account endpoints section, just leave it blank. The menu will not be visible anymore.account endpoints for the download section in the my accounts page
  2. This is the outcome:hide the downloads tab in the account page

Conclusion

In summary, you have learnt a quick and easy way to hide the Downloads section from My Accounts Page. Remember to update the functions.php file so that the changes can reflect. Moreover, do not forget to remove the entry for Downloads in the Account endpoints section. If you want to hide another section or customize this page, please consider hiring a qualified WordPress Developer so that you do not break down your site.

Similar Article

  1. How to Get WooCommerce Page URLs » Cart, Shop,Checkout & Account