Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




load_child_theme_textdomain [ WordPress Function ]

load_child_theme_textdomain ( $domain, $path = false )
Parameters:
  • (string) $domain Unique identifier for retrieving translated strings
Defined at:



Loads the child themes translated strings.

If the current locale exists as a .mo file in the child themes root directory, it will be included in the translated strings by the $domain.

The .mo files must be named based on the locale exactly.

Source


<?php
function load_child_theme_textdomain$domain$path false ) {
    
$locale apply_filters'theme_locale'get_locale(), $domain );

    
$path = ( empty( $path ) ) ? get_stylesheet_directory() : $path;

    
$mofile "$path/$locale.mo";
    return 
load_textdomain($domain$mofile);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics