Last active
February 27, 2016 11:06
-
-
Save OscarAbadFolgueira/30ddccfdcf5083829c75 to your computer and use it in GitHub Desktop.
Woocommerce code snippet change the product tabs titles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This WordPress/Woocommerce code snippet change the product tabs titles | |
* | |
* Author: Oscar Abad Folgueira | |
* Author URI: http://www.oscarabadfolgueira.com | |
* | |
* You can copy this snippet and paste in your functions.php or you can build your own plugin | |
* | |
* Change the tabs titles your needs. | |
*/ | |
add_filter( 'woocommerce_product_tabs', 'oaf_wc_change_product_tabs_titles', 20); | |
function oaf_wc_change_product_tabs_titles($tabs) { | |
$tabs['description']['title'] = 'Información'; | |
$tabs['reviews']['title'] = 'Valoraciones'; | |
return $tabs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment