首页 WordPress函数大全 load_muplugin_textdomain()

load_muplugin_textdomain()

2020-05-02 / 3053阅 / 悠然

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

load_muplugin_textdomain( string $domain, string $mu_plugin_rel_path = '' )

为位于mu-plugins目录中的插件加载翻译后的字符串。

描述

参数

$domain

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

$mu_plugin_rel_path

(string)
(Optional)
Relative to WPMU_PLUGIN_DIR directory in which the .mo file resides.

Default value: ''

返回

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

大家谈论
    我的见解