Skip to content

Instantly share code, notes, and snippets.

@saqibsarwar
Last active December 21, 2015 11:09
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 saqibsarwar/bac160eb018d5f47e14b to your computer and use it in GitHub Desktop.
Save saqibsarwar/bac160eb018d5f47e14b to your computer and use it in GitHub Desktop.
Load translations from child theme
<?php
if ( !function_exists( 'inspiry_load_translation_from_child' ) ) {
/**
* Load translation files from child theme
*/
function inspiry_load_translation_from_child() {
load_child_theme_textdomain ( 'framework', get_stylesheet_directory () . '/languages' );
}
add_action ( 'after_setup_theme', 'inspiry_load_translation_from_child' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment