Last active
August 29, 2015 14:03
-
-
Save AntonioRigo/3d0f2552c0e8efba17ff to your computer and use it in GitHub Desktop.
Configurar localización/traducción en un child theme para WordPress
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 | |
function child_theme_setup() { // función para configurar el theme. | |
// registra el directorio de 'parent theme' y el directorio en el que se almacenan los archivos .po y .mo | |
load_child_theme_textdomain( 'parent_theme', get_stylesheet_directory() . '/languages' ); | |
} | |
add_action( 'after_setup_theme', 'child_theme_setup' ); // hook que dispara la función para agregar scripts. | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment