In this tutorial, I will show you how to hide the ‘My Account’ option from the WooCommerce store menu in a few easy steps. I will be explaining each step in detail with screenshots to make it clear for you.
WordPress allows us to create menus in a few easy steps. We can add multiple page links to the WordPress menu such as My Account, Shop, Cart, etc. We can add various posts, pages, categories, and links to the WordPress menu.
WordPress allows us to add all these, but you can’t control who can view these menu items. For instance, if you want to hide the ‘My Account’ option for a specific user from the menu, you can’t do it. WordPress doesn’t allow us to limit these from specific user roles.
If you also want to hide these menu items but don’t know how to, I have got your back. We can hide particular menu items with the help of coding and third-party plugins.
You might also be interested in:
- How to Hide Product from Shop Page in WooCommerce
- How to Restrict WooCommerce Products By User Roles
- How to Hide the Category in WooCommerce?
Continue reading ahead and figure out how to hide the ‘My Account’ option from the WordPress menu.
On This Page
When Should You Hide Menu Items From WordPress Menu?
Many WooCommerce store owners chose to hide the My Account option from logged-out users. This is because there is no point in showing the My Account option in the WooCommerce menu when the user isn’t logged in. If you show them, they will still be able to access their account. And, it looks like an amateur has built this store without any prior knowledge of eCommerce.
Another thing is when you cater to both types of customers – B2B and B2C. While hiding the menu item, you can choose which users shouldn’t see this option. For example, you can select to hide this option from Wholesale Customers or guest users.
Read the next section to check how to restrict the ‘My Account’ option from the WooCommerce store menu.
How to Hide The ‘My Account’ Option From WooCommerce Store Menu
In this section, we will figure out how you can restrict menu items of your WooCommerce store. To carry out this whole tutorial, we will be using the Restriction Rules plugin by Woosuite. This plugin will help us restrict menu items from some customers. So, read ahead and figure out how to hide the menu items from the WooCommerce menu.
Step 1. Install and Activate the Restriction Rules Plugin
Note: You can skip this step if you have already installed and activated the Restriction Rules plugin.
To install the Restriction Rules plugin, we will need to install the Woosuite Core plugin and activate the license. So, we have created a Quick Start Guide for you to figure out how to install and activate the Restriction Rules plugin. The Quick Start Guide will help you install and activate the plugin and its license. So, click here to check out the Quick Start Guide.
Step 2. Create A Menu
Note: Skip this step if you have already created a WordPress menu.
The next step is to create a WordPress menu. Log in to the WordPress dashboard to create a WordPress menu. Search for the Appearance section, and look for the Menu option in it. Click on the Menu option, and it will redirect you to a new page.
Now, you will have different options on the screen. These will help you create a WordPress menu. So, first, give a name to the WordPress menu. I’m naming it the Primary Menu.
In the Menu Settings, select the Display Location, which means where you want to display this menu on your site. You can choose from the Primary Menu, Secondary Menu, and Handled Menu. I’m choosing the Primary Menu from the given options. After that, click on Create Menu.
Click on the View All section, and select the Pages you want to add to the WordPress menu. You will see pages like Home, Cart, Checkout, My Account, Shop Page, and more. I will be selecting all these pages to add to the WordPress menu.
Then, click on the Add to Menu option.
After adding all these menu items, you will see all your selected items in the menu now. You can see the same in the given image.
Step 3. Hide Menu Items
In this section, we will learn to hide the particular menu items we decided to hide. In this section, I will tell you how to hide the My Account option from the WordPress menu. Again, we will use the Restriction Rules plugin by Woosuite.
So, click on the menu item, and it will show some more options in the dropdown. You will see options like Navigation Label, Display Mode, and a few more. But, we will only play with the Display Mode option.
In the Display Mode option, you will see settings like Logged In Users, Not Logged In Users, and Everyone. By default, it will be on Everyone. You have to select between Logged In Users and Not Logged In Users.
Logged In Users: Select this option if you want to show this menu to logged-in users only. Now, you can select which logged-in users should see this menu. It will show you all the user roles; you can select accordingly.
Not Logged In Users: Select this option if you want to show this menu to logged-out users only. Logged out users won’t see this option.
After doing this, click on the Save Menu button.
So, we made all the changes, and now it’s time to see whether all settings are working fine or not. If not, what mistakes have we made, and how can we improve them. I’m currently logged in as a Retail Customer and landed at the home page. As you can see, the My Account option isn’t visible in the menu.
We finally figured out how to hide the ‘My Account’ option from the WooCommerce store menu. In this article, we looked at each step properly and achieved the desired results. This is how you can restrict WordPress menu items from particular customers. We hope you also followed the same steps and achieved good results.
Let me know if you face any problems with the process. We will help you resolve the problem you are facing.
That’s All For This Article. Keep Stalking Woosuite For More Stuff Around WooCommerce.