函数原型
load_child_theme_textdomain( string $domain, string|false $path = false ): bool
函数描述
Loads the child themes translated strings.
是否弃用
未弃用
函数参数
-
$domain
string
Required - Text domain. Unique identifier for retrieving translated strings.
-
$path
string|false
Optional - Path to the directory containing the .mo file.
Default:
false
函数返回值
bool True when the theme textdomain is successfully loaded, false otherwise.
函数位置
File: wp-includes/l10n.php.
函数源码
function load_child_theme_textdomain( $domain, $path = false ) {
if ( ! $path ) {
$path = get_stylesheet_directory();
}
return load_theme_textdomain( $domain, $path );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |

