Skip to content

Instantly share code, notes, and snippets.

@AntonioRigo
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AntonioRigo/3d0f2552c0e8efba17ff to your computer and use it in GitHub Desktop.
Save AntonioRigo/3d0f2552c0e8efba17ff to your computer and use it in GitHub Desktop.
Configurar localización/traducción en un child theme para WordPress
<?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