Hide specific attributes from the Additional Information tab
If your products have attributes and you don't want to configure their visibility on a per-product basis, you can use the following code to hide specific attributes from the Additional Information tab on your WooCommerce single product pages.
- 1
-
Create a custom plugin
If you haven't done so already, create a custom plugin.
- 2
-
Add code
Add the following code to your custom plugin:
- 3
-
Edit the Attributes
In the above code, we are removing the Network, Merchant and Brand attributes from our Additional Information tab. You can add or remove from the
$hidden_attributes
to get your desired effect. - 4
-
Save
Save your changes.
Now you have full control over what appears and doesn't appear in the Additional Information tab.