Site icon Experience Wordpress Developer Online – Design Develop and Maintenance Support

How to Remove Items from My Account menu in Woocommerce

In WooCommerce, some menu item in my account page is not necessary for customer. for example many WooCommerce shop sell physical good so there is no need to “Downloads” options for customer in “My Account” page. So you want to remove this menu iteam, than here is solutions it is very easy.

Simply go to WooCommerce > Settings > Accounts and remove the value of menu item. Just leave it blank and save it. Here we will do for “Downloads” menu item. so we will remove it’s value and save it. The menu will not be visible in My Account page anymore.

Also you can do it using code. Add below line of code at the end of your theme’s functions.php file of your active child theme (or theme) and Save the file.

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