Home WooCommerce Tutorials Standard Post

Standard Post

Remove the „Downloads“ Page from WooCommerce „My Account“

Many friends in China who use WordPress to build foreign trade websites and engage in B2C business will use WooCommerce for e-commerce functionality. However, after installing WooCommerce by default, a downloads page appears in the menu on the user account page. For large...

Updated on August 26, 2020 About 2 minutes read
删除WooCommerce“我的账户”里面的“下载”页面

Many friends in ChinaWhen building a foreign trade website with WordPressfriends who engage in B2C business will use WooCommerce for e-commerce functionality. However, after installing WooCommerce by default, a downloads page appears in the menu on the user account page.

For most foreign trade websites, the products sold are physical goods, and this download page is unnecessary. It may also cause confusion for users. This article from Naiba Web Development will teach youHow to Remove the „Downloads“ Page from the WooCommerce „My Account“ Page

Method 1: Delete the Option in Settings

Go to WooCommerce Settings, Advanced, Account endpoints (WooCommerce > Settings > Advanced > Account endpoints), then delete the parameter after the downloads page and save. The downloads interface will no longer be visible on the website frontend.

Method 2: Delete Using Code

The method of deleting using code is also very convenient. Simply copy the code below into your Theme's functions.php file, save it, and it will take effect.

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

Using either of the above two methods, you can easily remove the downloads page from the WooCommerce account page.

5/5 - (1 vote)
Previous WooCommerce Product Stock Settings and Methods to Display Stock Quantity Continue reading content around the same timeline. Next How to Remove Cloudflare's email-decode.min.js Script to Speed Up Your Website View the next related tutorial or experience.

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: