WooCommerce : Customize Woocommerce Settings Tab.

Code

WooCommerce is the more powerful e-commerce plugin for WordPress.And what i love with WooCommerce is that there’s an API for nearly everything.There are almost Hooks and filters For Every Customization work.

Let’s talk about customizing Woocommerce Admin setting Tabs.To hide a specific Woocommerce setting tab or want to customize the Woocommerce setting tabs, not the entire sub-menu, but just a tab.For just Removing tabs we can use 'woocommerce_settings_tabs_array' Woocommerce Filter.

If you want to remove tabs instead of hiding them using CSS, then you can add the following to yours theme’s functions.php.

function RemoveWoocommerceSettingTabs( $value) {
// the tabs we want to hide
$tabToHide = array(
'tax' => 'Tax',
'checkout' => 'Checkout',
'products' => 'products',
'shipping' => 'Shipping',
'integration' => 'Integration',
'advanced' => 'Advanced',
'email' => 'Emails',
'api' => 'API',
'account' => 'Accounts',
);
// Tabs We want to hide
$value= array_diff_key($value, $tabToHide);
return $value;
}
add_filter('woocommerce_settings_tabs_array','RemoveWoocommerceSettingTabs');

In this code $value passed in Function is empty variable,because all WooCommerce tabs has priority equal to 20.
so we have to add higher priority than 20, so now filter is

add_filter('woocommerce_settings_tabs_array','RemoveWoocommerceSettingTabs', 200, 1);

But WE can still access the URLs of tabs .So This is just a way of removing the tabs Form html instead of hiding them. Means this filter just added benefit that tabs is not in HTML, so if we look at the source code, we would not find the elements.
So we have to modify the hook more.

function RemoveWoocommerceSettingTabs( $value) {
// the tabs we want to hide
$tabToHide= array(
'tax' => 'Tax',
'checkout' => 'Checkout',
'products' => 'products',
'shipping' => 'Shipping',
'integration' => 'Integration',
'advanced' => 'Advanced',
'email' => 'Emails',
'api' => 'API',
'account' => 'Accounts',
);
// Tabs We want to hide
$value= array_diff_key($value, $tabToHide);
foreach($tabToHide as $tabs => $title) {
add_action( 'woocommerce_settings_' . $array, 'RedirectFromTabPage');
}
return $value;
}
add_filter('woocommerce_settings_tabs_array','RemoveWoocommerceSettingTabs', 200, 1);

function RedirectFromTabPage() {
wp_redirect(get_admin_url().’/admin.php?page=wc-settings’);
exit;
}

I have added a foreach loop that goes through list of tabs we want to block and hooks it into the ‘woocommerce_settings_{$tab}’ action which is used to show settings pages of WooCommerce. Function 'RedirectFromTabPagefunction' is used for redirecting to custom URL.

Enjoy.

Related reading:

Shiv Kumawat

Executive Director & CEO

Shiv Kumawat is the CEO of Eoxys IT Solution LLP, the Jaipur-based IT company he has led since 2009. An AI & IT Solutions Consultant with 16+ years of experience, he works with startups and enterprises to turn ideas into market-ready SaaS platforms, mobile apps and AI-driven solutions. His team has delivered 700+ projects across SaaS, mobile and web apps, automation and AI. He previously served as Chief Technology Officer for a US company.

Latest Posts

Isometric illustration of an AI vendor vetting checklist on a clipboard, a magnifying glass inspecting server racks, and shield, padlock, contract and key tiles on a deep navy background with teal and orange accents

How to Choose an AI Development Company: A Vetting Checklist

In the second week of October 2026, two regulators sent the same signal. The UK ICO reported on 8 October…

Shafeeq Khan
October 17, 2026
Isometric illustration comparing a packaged SaaS AI agent box on the left with a custom modular agent stack on the right, deep navy background with teal and orange accents

Custom AI Agent vs Off-the-Shelf Tools: How to Decide

Founders and CTOs face the same choice in late 2026: buy an off-the-shelf AI agent from platforms such as Salesforce…

Shafeeq Khan
October 16, 2026
An AI agent sending trace spans for each model call and tool step to an observability dashboard

AI Agent Observability: How to Trace and Debug Your Agents

On 14 October 2026, Anthropic announced OpenTelemetry tracing for agents built on the Claude Platform, so every agent turn, model…

Shafeeq Khan
October 15, 2026
,

Leave a Reply

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