[WP] Charger les fichiers de langue d'un thème enfant
Code à placer dans le fichier functions.php du thème enfant
Langage du code ci-dessous : PHP
<?php
/**
* Load translation files from your child theme instead of the parent theme
*/
function your_child_theme_locale() {
load_child_theme_textdomain( 'your_child_theme', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'your_child_theme_locale' );
?>