WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
Line | Code |
---|---|
423 | * will be included in the translated strings by the $domain. |
424 | * |
425 | * The .mo files must be named based on the locale exactly. |
426 | * |
427 | * @since 1.5.0 |
428 | * |
429 | * @param string $domain Unique identifier for retrieving translated strings |
430 | */ |
431 | function load_theme_textdomain( $domain, $path = false ) { |
432 | $locale = apply_filters( 'theme_locale', get_locale(), $domain ); |
433 |
|
434 | $path = ( empty( $path ) ) ? get_template_directory() : $path; |
435 |
|
436 | $mofile = "$path/$locale.mo"; |
437 | return load_textdomain($domain, $mofile); |
438 | } |
439 |
|
440 | /** |
441 | * Loads the child themes translated strings. |
Line | Code |
444 | * will be included in the translated strings by the $domain. |
445 | * |
446 | * The .mo files must be named based on the locale exactly. |
447 | * |
448 | * @since 2.9.0 |
449 | * |
450 | * @param string $domain Unique identifier for retrieving translated strings |
451 | */ |
452 | function load_child_theme_textdomain( $domain, $path = false ) { |
453 | $locale = apply_filters( 'theme_locale', get_locale(), $domain ); |
454 |
|
455 | $path = ( empty( $path ) ) ? get_stylesheet_directory() : $path; |
456 |
|
457 | $mofile = "$path/$locale.mo"; |
458 | return load_textdomain($domain, $mofile); |
459 | } |
460 |
|
461 | /** |
462 | * Returns the Translations instance for a domain. If there isn't one, |