Woocommerce Hosting Tips: Remove Tabs from Product Data Section in Admin

Leave a Comment
We know that woocommerce is a widely used plugin to create shopping websites in wordpress. So, after we are adding products we've a section named “Product Data” just under the content editor. during this section we've various tabs like general, inventory, linked product etc. Sometimes we tend to don't use few of them, so we wish to get rid of them for a good user experience. Here i'm providing a small code snippet to remove unwanted tabs from that particular section. to do this we will use a woocommerce predefined filter in the below mentioned way. 

Woocommerce Hosting Tips: Remove Tabs from Product Data Section in Admin

Just copy and paste below mentioned code snippet to functions.php file :

function remove_tab($tabs){
unset($tabs['inventory']); // it is to remove inventory tab
//unset($tabs['advanced']); // it is to remove advanced tab
//unset($tabs['linked_product']); // it is to remove linked_product tab
//unset($tabs['attribute']); // it is to remove attribute tab
//unset($tabs['variations']); // it is to remove variations tab

add_filter('woocommerce_product_data_tabs', 'remove_tab', 10, 1);

In the above mentioned code we are just removing a tab named “inventory” from the list of all the tabs. You can remove any other tab as per your choice. I have put a line for each tab, just uncomment any of them which you want to remove from that section. 

Best and Cheap Woocommerce Hosting Recommendation

HostForLIFEASP.NET – They service are excellent and the features of the web hosting plan are even greater than many hosting providers ask you to pay for. You can always start from their CLASSIC PLAN (start €3.00/month). They provide cheap, best and instant activation on your eCommerce Hosting account Once you install. You will enjoy the full support of the experienced HostForLIFEASP.NET team, 24 hours a day, 7 days a week. Affordable Budget prices, full features, 99.9% Uptime Guarantee, No Risk Money-Back Guarantee - come and see for yourself why everyone is recommending HostForLIFEASP.NET for eCommerce Web Hosting in UK. Stability and Performance of HostForLIFE servers remain their TOP priority. Even their basic service plans are equipped with standard service level agreements for 99.99% uptime. Advanced options raise the bar to 99.99%. 

HostForLIFEASP.NET is Microsoft No #1 Recommended eCommerce Hosting in European Continent. Their service is ranked the highest top #1 spot in several European countries, such as: Germany, Italy, Netherlands, France, Belgium, United Kingdom, Sweden, Finland, Switzerland and many top European countries.

Next PostNewer Post Previous PostOlder Post Home


Post a Comment