🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

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

Many friends in ChinaWhen 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 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.

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

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.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

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