{"id":54409,"date":"2017-08-28T16:16:57","date_gmt":"2017-08-28T19:16:57","guid":{"rendered":"https:\/\/wiki.samuelchopard.ch\/?p=54409"},"modified":"2019-03-18T14:29:20","modified_gmt":"2019-03-18T13:29:20","slug":"remove-product-tabs","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/remove-product-tabs\/","title":{"rendered":"Remove product tabs"},"content":{"rendered":"<p><!--more--><\/p>\n<p>Paste the following code in your theme&#8217;s <em>functions.php<\/em>:<\/p>\n<pre class=\"EnlighterJSRAW\">add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );\n\nfunction woo_remove_product_tabs( $tabs ) {\n\n    unset( $tabs['description'] );      \t\/\/ Remove the description tab\n    unset( $tabs['reviews'] ); \t\t\t\/\/ Remove the reviews tab\n    unset( $tabs['additional_information'] );  \t\/\/ Remove the additional information tab\n\n    return $tabs;\n\n}<\/pre>\n<p><strong>Note:<\/strong> delete the lines of the tabs that are not meant to be removed.<\/p>\n<p>&nbsp;<\/p>\n<p>Source:\u00a0<a target=\"_blank\" href=\"https:\/\/docs.woocommerce.com\/document\/editing-product-data-tabs\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.woocommerce.com\/document\/editing-product-data-tabs\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Paste the following code in your theme's functions.php: add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { unset( $tabs['description'] [...]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,8],"tags":[22,232,234,243,285,327],"class_list":["post-54409","post","type-post","status-publish","format-standard","hentry","category-php-tricks","category-plugins","category-woocommerce","tag-additional-information","tag-product","tag-products","tag-remove-product-tabs","tag-tabs","tag-woocommerce"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/comments?post=54409"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54409\/revisions"}],"predecessor-version":[{"id":54868,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54409\/revisions\/54868"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=54409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=54409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=54409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}