Skip to content

Instantly share code, notes, and snippets.

@OscarAbadFolgueira
Last active February 27, 2016 11:06
Show Gist options
  • Save OscarAbadFolgueira/30ddccfdcf5083829c75 to your computer and use it in GitHub Desktop.
Save OscarAbadFolgueira/30ddccfdcf5083829c75 to your computer and use it in GitHub Desktop.
Woocommerce code snippet change the product tabs titles
<?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