How to Completely Disable and Remove WooCommerce Product Tags

Product tags are a relatively flexible classification method in WooCommerce, allowing users to add a tag-based organization system to products. WooCommerce does not provide a built-in way to disable product tags, but if you truly do not need them, you can completely disable the feature with code.

Remove the “Products > Tags” Link from the Admin Menu

As the first step, we can remove the “Tags” link from the Products submenu in the WordPress dashboard. We can use the remove_submenu_page() function to achieve this.

add_action('admin_menu', function ()
{
    remove_submenu_page('edit.php?post_type=product', 'edit-tags.php?taxonomy=product_tag&post_type=product');
}, 9999);

Remove the Product Tag Meta Box

As the second step, remove the meta box used to enter product tags on the product editing screen. Just like in the first step, WordPress gives us the remove_meta_box() function to make this easy.

add_action('admin_menu', function ()
{
    remove_meta_box('tagsdiv-product_tag', 'product', 'side');
});

Remove the Product Tag Column from the Product List

As the third step, remove the product tag column from the product list table. In fact, we could hide this column from the WooCommerce product list screen, but that hiding operation only affects the currently logged-in user. Other users would still need to hide it again for themselves. To reduce extra steps for other users, we can remove the column directly with code.

add_filter('manage_product_posts_columns', function ($product_columns)
{
    unset($product_columns[ 'product_tag' ]);

    return $product_columns;
}, 999);

Remove Product Tag Fields from Quick Edit and Bulk Edit

As the fourth step, remove the product tag field from Quick Edit. Most users add product tags through this interface. Once this field is removed, users will no longer be able to assign tags when editing products through that workflow.

add_filter('quick_edit_show_taxonomy', function ($show, $taxonomy_name)
{
    if ('product_tag' == $taxonomy_name) {
        $show = false;
    }

    return $show;
}, 10, 2);

Remove the Product Tag Cloud Widget

Finally, remove the product tag cloud widget. Even if we do not place the tag cloud in a widget area so that it does not appear on the front end, removing it entirely keeps the interface cleaner.

add_action('widgets_init', function ()
{
    unregister_widget('WC_Widget_Product_Tag_Cloud');
});

All of the code above needs to be added to the theme’s functions.php file or a file included from it. Once these steps are completed, product tags will disappear completely from the WooCommerce system.

Related Posts

Leave a Reply

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