With 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.
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:
Steps to Hide Downloads From My Account Page
Here are the steps that you need to follow:
- Log into your WordPress site and access the Dashboard as the admin user.
- 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.
- 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' );
- 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.
- This is the outcome:
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
- How to Add Search Box on Top of Page Storefront Theme
- How to Hide Price When Out of Stock In WooCommerce
- How to Add WooCommerce Storefront Product Pagination
- How to Hide Weight of Product in WooCommerce
- How to Hide Shipping Rates if Free Shipping Available WooCommerce
- How to Hide Tax On Checkout If Field Value Exists WooCommerce
- How to Hide Quantity In Stock In WooCommerce
- How to Hide Product Image on Cart Page WooCommerce
- How to Hide Update Cart Button WooCommerce Cart Page
- How to Redirect to Cart after Login in WooCommerce
- How to Hide Shop In WooCommerce
- How to Remove Downloads Menu My Account Page WooCommerce
- How to Create My Account Page In WooCommerce
- How to Get Payment Methods in WooCommerce » Code Example
- How to Replace Add to Cart Button With Link WooCommerce
- How to Get WooCommerce Page URLs » Cart, Shop,Checkout & Account