Last active
August 29, 2015 14:10
-
-
Save vsalda/63e63ad8364ff7aa13a8 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Configurar el textdomain de nuestro tema hijo. | |
* | |
* Utilizamos el hook 'after_setup_theme' y enganchamos nuestra función. | |
* Las traducciones deben ir dentro del directorio /languages/ en nuestro tema hijo. | |
*/ | |
function twentyfourteen_child_theme_setup() { | |
load_child_theme_textdomain( 'twentyfourteen-child-theme', get_stylesheet_directory() . '/languages' ); | |
} | |
add_action( 'after_setup_theme', 'twentyfourteen_child_theme_setup' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment