{"id":11317,"date":"2017-01-27T15:27:28","date_gmt":"2017-01-27T15:27:28","guid":{"rendered":"http:\/\/rnbtheme.com\/documentation\/?p=11317"},"modified":"2017-01-27T15:51:09","modified_gmt":"2017-01-27T15:51:09","slug":"remove-product-data-tabs-for-single-products","status":"publish","type":"post","link":"https:\/\/rnbtheme.com\/documentation\/knowledge-base\/remove-product-data-tabs-for-single-products","title":{"rendered":"Remove Product Data Tabs for Single Products"},"content":{"rendered":"<p>Sometimes our customers need to remove the unused data tabs for the\u00a0single product for WooCommerce plugin.<\/p>\n<p>Below you may find the instruction on how it can be achieved.<\/p>\n<ul>\n<li>Access your theme files any convenient way (CPanel or any FTP-client).<\/li>\n<li>Find the file: \\wp-content\\themes\\native\\functions.php<\/li>\n<li>Open it in a text editor.<\/li>\n<li>Find the following lines in this file:<\/li>\n<\/ul>\n<pre>add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );\r\n\r\nfunction woo_remove_product_tabs( $tabs ) {\r\n\r\nunset( $tabs['description'] ); \r\nunset( $tabs['reviews'] ); \r\nunset( $tabs['additional_information'] ); \r\n\r\nreturn $tabs;\r\n\r\n}\r\n\r\n\r\n<\/pre>\n<ul>\n<li>Comment the following lines.<\/li>\n<\/ul>\n<pre><strong>\/\/<\/strong>unset( $tabs['description'] ); \r\n<strong>\/\/<\/strong>unset( $tabs['reviews'] ); \r\n<strong>\/\/<\/strong>unset( $tabs['additional_information'] );<\/pre>\n<ul>\n<li>So as the result you&#8217;ll get the following lines.<\/li>\n<\/ul>\n<pre>add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );\r\n\r\nfunction woo_remove_product_tabs( $tabs ) {\r\n\r\n\/\/unset( $tabs['description'] ); \r\n\/\/unset( $tabs['reviews'] ); \r\n\/\/unset( $tabs['additional_information'] ); \r\n\r\nreturn $tabs;\r\n\r\n}\r\n\r\n\r\n<\/pre>\n<ul>\n<li>Save the modifications done.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Regards, DFD Support Team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes our customers need to remove the unused data tabs for the\u00a0single product for WooCommerce plugin. Below you may find the instruction on how it can be achieved. Access your<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/posts\/11317"}],"collection":[{"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/comments?post=11317"}],"version-history":[{"count":7,"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/posts\/11317\/revisions"}],"predecessor-version":[{"id":11331,"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/posts\/11317\/revisions\/11331"}],"wp:attachment":[{"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/media?parent=11317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/categories?post=11317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rnbtheme.com\/documentation\/wp-json\/wp\/v2\/tags?post=11317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}