[ create a new paste ] login | about

Link: http://codepad.org/E2w54CMf    [ raw code | fork ]

PHP, pasted on Sep 25:
1
2
3
4
5
6
add_action( 'after_setup_theme', function () {
    // load custom translation file for the parent theme
    load_theme_textdomain( 'parent-textdomain', get_stylesheet_directory() . '/languages/parent-theme' );
    // load translation file for the child theme
    load_child_theme_textdomain( 'my-child-theme', get_stylesheet_directory() . '/languages' );
} );


Create a new paste based on this one


Comments: