Created
May 9, 2020 18:21
-
-
Save Oscar-Abad-Folgueira/ca60b171f04198a40307bd14ea016a0f to your computer and use it in GitHub Desktop.
Cambiar el título de las pestañas de producto de WooCommerce
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 | |
/** | |
* @snippet Cambiar el título de las pestañas de producto de WooCommerce | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/woocommerce-snippet-cambiar-el-titulo-de-las-pestanas-de-producto/ | |
*/ | |
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