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!

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' );
}
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.
Thank you! This helped me improve the code snippet, try the new version please and let me know
Thanks! Was a really annoying feature.
Yay!
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.
Uhm, let’s see. Do you use WooPayments or is the WooPayments plugin installed maybe?