WooCommerce: Remove “Payments” From WordPress Sidebar Admin Menu

The “Payments” tab in the WordPress admin sidebar menu, introduced in newer versions of WooCommerce, is designed to provide a centralized and streamlined management interface for handling payment-related settings and configurations.

Another significant reason for this tab is to promote WooPayments, the platform’s native payment solution. This service integrates tightly with WooCommerce and offers seamless checkout experiences, built-in subscriptions, and real-time payment tracking.

So, if you’ve always wanted to get rid of it, here’s a quick snippet that will do the trick! Don’t worry — it’s simple, efficient, and won’t require you to install any extra plugins. Let’s dive into the code and clean up the admin sidebar in just a few minutes!

Let’s hide the new “Payments” menu item from the WordPress dashboard sidebar. That’s been added by Woo in a recent release.

PHP Snippet: Hide WooCommerce “Payments” Link @ WordPress Dashboard Sidebar Menu

/**
 * @snippet       Remove "Payments" Tab | WordPress Dashboard
 * @tutorial      Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli, Business Bloomer
 * @compatible    WooCommerce 9
 * @community     https://businessbloomer.com/club/
 */

add_action( 'admin_menu', 'bbloomer_remove_payments_from_wp_sidebar_menu', 9999 );

function bbloomer_remove_payments_from_wp_sidebar_menu() {   
	remove_menu_page( 'admin.php?page=wc-settings&tab=checkout' );
   remove_menu_page( 'admin.php?page=wc-admin&path=/wc-pay-welcome-page' ); 
	remove_menu_page( 'admin.php?page=wc-admin&task=payments' ); 
   remove_menu_page( 'admin.php?page=wc-admin&task=woocommerce-payments' ); 
}

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

6 thoughts on “WooCommerce: Remove “Payments” From WordPress Sidebar Admin Menu

  1. Update to my question yesterday: I’ve solved the issue of hiding the Payments tab in my admin panel. The slug for the Payments tab in my WordPress Admin Panel is ‘admin.php?page=wc-admin&task=payments’. The code with the new slug works like a charm for all user roles. Thanks. Please continue the good deed you are doing by posting small snippets that is helpful to DIYers like me.

    1. Thank you! This helped me improve the code snippet, try the new version please and let me know

  2. Thanks! Was a really annoying feature.

  3. Dear Rodolfo,

    This code snippet does not remove the Payments tab in WordPress Admin Panel. What am I doing wrong. I have added this in the Code Snippets plugin like I’ve done with two other snippets from your repository. For some reason, this one doesn’t seem to work.

    1. Uhm, let’s see. Do you use WooPayments or is the WooPayments plugin installed maybe?

Questions? Feedback? Customization? Leave your comment now!
_____

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

Your email address will not be published. Required fields are marked *