首页 WordPress函数大全 load_child_theme_textdomain()

load_child_theme_textdomain()

2020-05-02 / 3500阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

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

加载子主题转换的字符串。

描述

如果当前语言环境在子主题根目录中以.mo文件形式存在,则$ domain会将其包含在转换后的字符串中。

.mo文件必须基于>

参数

$domain

(string)
(Required)
Text domain. Unique identifier for retrieving translated strings.

$path

(string)
(Optional)
Path to the directory containing the .mo file.

Default value: false

返回

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

大家谈论
    我的见解