load_textdomain_mofile

过滤钩子
apply_filters( 'load_textdomain_mofile', $mofile, $domain )
参数
  • (string) $mofile Path to the MO file.
    Required:
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required:
定义位置
相关勾子
load_textdomainunload_textdomainoverride_load_textdomainoverride_unload_textdomainload_script_textdomain_relative_path
相关方法
load_textdomainunload_textdomain_load_textdomain_just_in_timeload_theme_textdomainload_plugin_textdomainload_script_textdomain
引入
2.9.0
弃用
-

load_textdomain_mofile: 这个函数用来指定用于一个特定文本域的翻译文件。它需要两个参数:文本域,和翻译文件的路径: 该函数可用于覆盖由load_textdomain函数指定的特定文本域的翻译文件。

过滤MO文件路径以加载特定文本域的翻译。

$mofile = apply_filters( 'load_textdomain_mofile', $mofile, $domain );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 17:32:57

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: