{"id":54415,"date":"2017-08-28T16:21:22","date_gmt":"2017-08-28T19:21:22","guid":{"rendered":"https:\/\/wiki.samuelchopard.ch\/?p=54415"},"modified":"2019-03-18T14:29:20","modified_gmt":"2019-03-18T13:29:20","slug":"rename-product-tabs","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/rename-product-tabs\/","title":{"rendered":"Rename 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_rename_tabs', 98 );\nfunction woo_rename_tabs( $tabs ) {\n\n  $tabs['description']['title'] = __( 'More Information' );\t\t\/\/ Rename the description tab\n  $tabs['reviews']['title'] = __( 'Ratings' );\t\t\t\t\/\/ Rename the reviews tab\n  $tabs['additional_information']['title'] = __( 'Product Data' );\t\/\/ Rename the additional information tab\n\n  return $tabs;\n\n}<\/pre>\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_rename_tabs', 98 ); function woo_rename_tabs( $tabs ) { $tabs['description']['title'] = [...]","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,233,234,285,327],"class_list":["post-54415","post","type-post","status-publish","format-standard","hentry","category-php-tricks","category-plugins","category-woocommerce","tag-additional-information","tag-product","tag-product-tabs","tag-products","tag-tabs","tag-woocommerce"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54415","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=54415"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54415\/revisions"}],"predecessor-version":[{"id":54867,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54415\/revisions\/54867"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=54415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=54415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=54415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}