{"id":225,"date":"2022-09-08T06:43:58","date_gmt":"2022-09-08T06:43:58","guid":{"rendered":"https:\/\/unmaskwp.com\/?post_type=snippets&p=225"},"modified":"2022-09-08T07:09:17","modified_gmt":"2022-09-08T07:09:17","slug":"how-to-reorder-data-tabs-in-woocommerce-single-product-page","status":"publish","type":"snippets","link":"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/","title":{"rendered":"How to Reorder Data Tabs in WooCommerce Single Product Page?"},"content":{"rendered":"\n

Do you want to change the order of the WooCommerce tabs on the single product page? <\/p>\n\n\n\n

By default, WooCommerce adds three tabs to display related product data. This includes a detailed description of the product, user reviews, and additional information (if any). <\/p>\n\n\n\n

You may want to display these data tabs in a different order on the WooCommerce single page. <\/p>\n\n\n\n

You can use the below code to reorder the data tabs on the single product page in WooCommerce. <\/p>\n\n\n\n

\/**\r\n * Reorder product data tabs\r\n *\/\r\nfunction maverick_reorder_woocommerce_single_product_tabs( $tabs ) {\r\n    \r\n    \/\/ Set Reviews Tab first\r\n\t$tabs['reviews']['priority'] = 5;\t\t\t\r\n    \r\n    \/\/ Set Description Tab second\r\n\t$tabs['description']['priority'] = 10;\r\n\t\r\n    \/\/ Set Additional information Tab third\r\n        $tabs['additional_information']['priority'] = 15;\r\n    \r\n\treturn $tabs;\r\n}\r\n\r\nadd_filter( 'woocommerce_product_tabs', 'maverick_reorder_woocommerce_single_product_tabs', 98 );<\/code><\/pre>\n\n\n\n

5, 10, and 15 are the priorities assigned to WooCommerce data tabs. If you wish you change the order, you can interchange their priorities. <\/p>\n\n\n\n

For example, if I need additional information first, followed by reviews, followed by the description tab. The code will be revised as the below code. <\/p>\n\n\n\n

\/**\n * Reorder product data tabs\n *\/\nfunction maverick_reorder_woocommerce_single_product_tabs( $tabs ) {\n    \n    \/\/ Set Reviews Tab first\n\t$tabs['reviews']['priority'] = 10;\t\t\t\n    \n    \/\/ Set Description Tab second\n\t$tabs['description']['priority'] = 15;\n\t\n    \/\/ Set Additional information Tab third\n        $tabs['additional_information']['priority'] = 5;\n    \n\treturn $tabs;\n}\n\nadd_filter( 'woocommerce_product_tabs', 'maverick_reorder_woocommerce_single_product_tabs', 98 );<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"

\u2026 Read More »<\/a><\/p>\n","protected":false},"author":2,"parent":0,"comment_status":"open","ping_status":"closed","template":"","snippet_type":[7],"snippet_tag":[68,69],"acf":[],"yoast_head":"\nHow to Reorder Data Tabs in WooCommerce Single Product Page? - UnmaskWP<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Reorder Data Tabs in WooCommerce Single Product Page? - UnmaskWP\" \/>\n<meta property=\"og:description\" content=\"\u2026 Read More »\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/\" \/>\n<meta property=\"og:site_name\" content=\"UnmaskWP\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unmaskwp\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-08T07:09:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unmaskwp.com\/wp-content\/uploads\/2020\/09\/unmaskwp-facebook-cover.png\" \/>\n\t<meta property=\"og:image:width\" content=\"820\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@UnmaskWP\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/\",\"url\":\"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/\",\"name\":\"How to Reorder Data Tabs in WooCommerce Single Product Page? - UnmaskWP\",\"isPartOf\":{\"@id\":\"https:\/\/unmaskwp.com\/#website\"},\"datePublished\":\"2022-09-08T06:43:58+00:00\",\"dateModified\":\"2022-09-08T07:09:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/unmaskwp.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Snippets\",\"item\":\"https:\/\/unmaskwp.com\/snippets\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Reorder Data Tabs in WooCommerce Single Product Page?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unmaskwp.com\/#website\",\"url\":\"https:\/\/unmaskwp.com\/\",\"name\":\"UnmaskWP\",\"description\":\"Free WordPress Theme & Plugin Detector\",\"publisher\":{\"@id\":\"https:\/\/unmaskwp.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unmaskwp.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unmaskwp.com\/#organization\",\"name\":\"UnmaskWP\",\"url\":\"https:\/\/unmaskwp.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/unmaskwp.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unmaskwp.com\/wp-content\/uploads\/2020\/09\/unmaskwp-logo.png\",\"contentUrl\":\"https:\/\/unmaskwp.com\/wp-content\/uploads\/2020\/09\/unmaskwp-logo.png\",\"width\":300,\"height\":42,\"caption\":\"UnmaskWP\"},\"image\":{\"@id\":\"https:\/\/unmaskwp.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unmaskwp\",\"https:\/\/x.com\/UnmaskWP\",\"https:\/\/www.instagram.com\/unmaskwp\/\",\"https:\/\/twitter.com\/UnmaskWP\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Reorder Data Tabs in WooCommerce Single Product Page? - UnmaskWP","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/","og_locale":"en_US","og_type":"article","og_title":"How to Reorder Data Tabs in WooCommerce Single Product Page? - UnmaskWP","og_description":"\u2026 Read More »","og_url":"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/","og_site_name":"UnmaskWP","article_publisher":"https:\/\/www.facebook.com\/unmaskwp","article_modified_time":"2022-09-08T07:09:17+00:00","og_image":[{"width":820,"height":360,"url":"https:\/\/unmaskwp.com\/wp-content\/uploads\/2020\/09\/unmaskwp-facebook-cover.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@UnmaskWP","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/","url":"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/","name":"How to Reorder Data Tabs in WooCommerce Single Product Page? - UnmaskWP","isPartOf":{"@id":"https:\/\/unmaskwp.com\/#website"},"datePublished":"2022-09-08T06:43:58+00:00","dateModified":"2022-09-08T07:09:17+00:00","breadcrumb":{"@id":"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/unmaskwp.com\/snippets\/how-to-reorder-data-tabs-in-woocommerce-single-product-page\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/unmaskwp.com\/"},{"@type":"ListItem","position":2,"name":"Snippets","item":"https:\/\/unmaskwp.com\/snippets\/"},{"@type":"ListItem","position":3,"name":"How to Reorder Data Tabs in WooCommerce Single Product Page?"}]},{"@type":"WebSite","@id":"https:\/\/unmaskwp.com\/#website","url":"https:\/\/unmaskwp.com\/","name":"UnmaskWP","description":"Free WordPress Theme & Plugin Detector","publisher":{"@id":"https:\/\/unmaskwp.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unmaskwp.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/unmaskwp.com\/#organization","name":"UnmaskWP","url":"https:\/\/unmaskwp.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/unmaskwp.com\/#\/schema\/logo\/image\/","url":"https:\/\/unmaskwp.com\/wp-content\/uploads\/2020\/09\/unmaskwp-logo.png","contentUrl":"https:\/\/unmaskwp.com\/wp-content\/uploads\/2020\/09\/unmaskwp-logo.png","width":300,"height":42,"caption":"UnmaskWP"},"image":{"@id":"https:\/\/unmaskwp.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unmaskwp","https:\/\/x.com\/UnmaskWP","https:\/\/www.instagram.com\/unmaskwp\/","https:\/\/twitter.com\/UnmaskWP"]}]}},"_links":{"self":[{"href":"https:\/\/unmaskwp.com\/wp-json\/wp\/v2\/snippets\/225"}],"collection":[{"href":"https:\/\/unmaskwp.com\/wp-json\/wp\/v2\/snippets"}],"about":[{"href":"https:\/\/unmaskwp.com\/wp-json\/wp\/v2\/types\/snippets"}],"author":[{"embeddable":true,"href":"https:\/\/unmaskwp.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unmaskwp.com\/wp-json\/wp\/v2\/comments?post=225"}],"wp:attachment":[{"href":"https:\/\/unmaskwp.com\/wp-json\/wp\/v2\/media?parent=225"}],"wp:term":[{"taxonomy":"snippet_type","embeddable":true,"href":"https:\/\/unmaskwp.com\/wp-json\/wp\/v2\/snippet_type?post=225"},{"taxonomy":"snippet_tag","embeddable":true,"href":"https:\/\/unmaskwp.com\/wp-json\/wp\/v2\/snippet_tag?post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}