{"id":54420,"date":"2017-08-28T16:32:03","date_gmt":"2017-08-28T19:32:03","guid":{"rendered":"https:\/\/wiki.samuelchopard.ch\/?p=54420"},"modified":"2019-03-18T14:29:20","modified_gmt":"2019-03-18T13:29:20","slug":"re-order-product-tabs","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/re-order-product-tabs\/","title":{"rendered":"Re-order product tabs"},"content":{"rendered":"<p><!--more--><\/p>\n<p>Paste the following code in your theme\u2019s\u00a0<em>functions.php<\/em>:<\/p>\n<pre class=\"EnlighterJSRAW\">add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );\nfunction woo_reorder_tabs( $tabs ) {\n\n  $tabs['reviews']['priority'] = 5;\t\t\t\/\/ Reviews first\n  $tabs['description']['priority'] = 10;\t\t\t\/\/ Description second\n  $tabs['additional_information']['priority'] = 15;\t\/\/ Additional information third\n\n  return $tabs;\n}<\/pre>\n<p>Note: change the <em>priority<\/em> value depending on your needs.<\/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\u2019s\u00a0functions.php: add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 ); function woo_reorder_tabs( $tabs ) { $tabs['reviews']['priority'] = 5; [...]","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":[196,233,234,239,245,285,327],"class_list":["post-54420","post","type-post","status-publish","format-standard","hentry","category-php-tricks","category-plugins","category-woocommerce","tag-order","tag-product-tabs","tag-products","tag-re-order","tag-reorder","tag-tabs","tag-woocommerce"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54420","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=54420"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54420\/revisions"}],"predecessor-version":[{"id":54866,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54420\/revisions\/54866"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=54420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=54420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=54420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}