Many friends in China
When building a foreign trade website with WordPresswho use WordPress to build foreign trade websites and engage in B2C business often use WooCommerce for e-commerce functionality. However, after installing WooCommerce by default, a 'downloads' page appears in the menu on the user account (account page). For most foreign trade websites selling physical goods, this downloads page is unnecessary and may even cause confusion for users. This article from Naibabiji teaches you
How 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.
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.