Many domestic
When using WordPress to build a foreign trade websitefriends, when conducting B2C business, use WooCommerce for e-commerce functionality. However, after the default installation of WooCommerce, 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 user confusion. 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 functions file and save it to 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 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.