How can I remove a WooCommerce Product Tab’s sub section in wp-admin?

WooCommerce settings with product tab

To change this “sub navigation” you could use the WooCommerce filter “woocommerce_get_sections_products“.

The following example code will remove the sub navigation point “inventory”:

function change_navi_function($sections)
{
    // remove sub navigation point "inventory"
    unset($sections['inventory']);

    return $sections;
}

add_filter('woocommerce_get_sections_products', 'change_navi_function');

WooCommerce settings with product tab without the subnavigation point inventory

What you have to do now is either to hook your “change_navi_function” function after the function from the premium plugin and then remove the “Product Vendors” from the “$sections” array. Or you unhook the function from the premium plugin which use the “woocommerce_get_sections_products” filter.

deneme bonusu veren sitelerbahis casinomakrobetceltabetpinbahispolobetpolobet girişpinbahis girişmakrobet girişpulibet girişmobilbahis girişkolaybet giriş