load_child_theme_textdomain()

最后更新于:2021-11-27 13:48:27

load_child_theme_textdomain( string$domain, string|false$path=false)

Load 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 value: false

响应

(bool) True when the theme textdomain is successfully loaded, false otherwise.

源文件

文件: gc-includes/l10n.php

function load_child_theme_textdomain( $domain, $path = false ) {
	if ( ! $path ) {
		$path = get_stylesheet_directory();
	}
	return load_theme_textdomain( $domain, $path );
}