How to Remove WooCommerce Admin Menus

Recently, WooCommerce has been updated with a lot of useful new admin features. There are improved dashboards, order screens, and items have been shifted to new places. For the most part, these are all welcome changes and additions to WooCommerce. The admin aspect of the world’s most popular e-commerce solution had become quite stale over the years. Unfortunately, these changes are not for everyone. Many store owners are looking for a way to remove WooCommerce admin menus that are new and unwanted.

Thankfully, you can certainly remove these new menu items. In particular, the Analytics and Marketing options are the ones people find the most annoying. Removing these particular WooCommerce admin menus can clean up the interface a bit for you and make things easier to work with.

You can try and hire someone to write some code to remove these menu items for you. They’ll need to either modify your theme, create a tiny custom plugin, or install a more complicated plugin that handles many different admin-level changes. Or you can try and do it on your own. We’ll show you how to handle this task by yourself and then provide an easier solution that is much faster and less technical.

How to Hide WooCommerce Admin Menus with Code

We’re about to go over the way to write working code to impact your WooCommerce site. This is going to fundamentally change the way your WordPress admin operates. By the end, you’ll have modified your site’s theme to include our admin menu removal code.

Warning! Make a complete backup of your store’s website before starting this process. This is a minor modification but if things go wrong you want to be prepared. It’s common for novices to make a simple typing error that can bring an entire site down instantly. Stay safe and have a backup of your entire site just in case something bad happens.

Make a Child Theme

We recommend doing this code change through your theme. Even though we’re about to modify the admin it’s simpler to do it this way for most people. Of course, you never want to add code right to your theme’s main files. Thankfully, we can use the child theme system baked into WordPress. A child theme inherits code from your original, or parent, theme. When the parent theme receives an update this system prevents your code changes from being overwritten and lost. You can easily find a WordPress child theme tutorial to get you set up and ready to add your own code in the following steps.

Add Code to the Child Theme

With your child theme made it is time to add code to it. Every WordPress theme should have inside of it a file called funcitons.php. This is the file where you can easily add code snippets. Make the funcitons.php file in your child theme’s directory and then open it in a text editor. You’ll want to add the following lines of code to remove WordPress admin menus for Analytics and Marketing.

add_filter( 'woocommerce_admin_features', 'my_remove_admin_menus' );
function my_remove_admin_menus($features) {
    $analytics = array_search('analytics', $features);
    unset($features[$analytics]);
    
    $marketing = array_search('marketing', $features);
    unset($features[$marketing]);

    return $features;	 	 
}

Save the functions.php file when you are done inserting the above code. If you want to keep one of the menus items, just remove its part from the code and keep the rest.

Does the code part not make sense? Child themes, and coding, can be too intimidating to a lot of people. We haven’t even told you how to upload your child theme yet. If you would rather have this done for you we have a plugin you can use. Learn how our Remove WooCommerce Features plugins can help you save time.

Upload Your Child Theme

Ok, your child theme is done but it’s not on your site yet. It’s time to upload it to your server so you can ultimately active it. The easiest way to handle this is right inside of the WordPress admin area. First, compress your child theme into a .zip file. Next, head over to the Appearance area of the WordPress admin and upload your file via the Themes section.

You can also upload your child theme using an FTP program. You can find dozens of FTP programs online and many of them are free. They can be a little tricky to set up though. You’ll need to know information about how to log in to your hosting provider’s server. If you want to try this, and need help, contact your hosting provider’s support staff or knowledge base for more information.

Activate the Child Theme

The final step! Your child theme is successfully uploaded if you can see it under the Appearance section of the WordPress admin. If you don’t see your child theme then you need to try and upload it again. Something went wrong during the process.

You should see an activation button next to your child theme after it is successfully uploaded. Clicking on that button should turn everything on, including your changes. You should immediately notice that you have finally taken care of our initial goal: to remove the WordPress admin menus you found unnecessary. If the menus are still there, or disaster has struck and your site is broken, you made a mistake with your code somewhere. Go back into your child theme’s functions.php file and try and see where you make the mistake. When it’s fixed you will have to repeat the upload and activation process again.

In the end, you will work it out and have things running properly. Of course, this was a ton of work for something so simple, right? You can pay someone to do this for you if you would prefer. The rates and time WooCommerce developers charge vary. Or, if you want to take care of this now, without finding help check out our easier solution.

How to Disable WooCommerce Admin Menus the Easy Way

Remove WooCommerce Features can handle removing these pesky WooCommerce admin menus quickly. You don’t need to learn how to write code or find and pay a WordPress developer. Once you have purchased and installed our plugin all you have to do is follow these steps.

Step #1

Go to the WooCommerce section of your WordPress installation’s admin menu and click the link that says Remove Features.

WooCommerce Admin Menu

Step #2

Find the setting for Admin Menus and click the checkbox so that it’s marked like so:

Remove WooCommerce Features - Admin Menus

Step #3

Press the button.

That’s all there is to it. Once you save the settings, the WooCommerce admin menus you selected will vanish instantly. With Remove WooCommerce Features, your changes will remain as long as you have the plugin installed and activated on your site.

Our plugin works with dozens of other commonly unwanted WooCommerce features. You can use it for more things than just modifying the WooCommerce admin. An entire list of features is available here on our site:

Remove WooCommerce Features Logo