load_script_translation_file

过滤钩子
apply_filters( 'load_script_translation_file', $file, $handle, $domain )
参数
  • (string|false) $file Path to the translation file to load. False if there isn't one.
    Required:
  • (string) $handle Name of the script to register a translation domain to.
    Required:
  • (string) $domain The text domain.
    Required:
定义位置
相关勾子
load_script_translationspre_load_script_translationsasync_update_translationload_script_textdomain_relative_pathtranslations_api
相关方法
load_script_translationswp_set_script_translationswp_load_translations_earlylist_translation_updateswp_get_translation_updatestranslations_api
引入
5.0.2
弃用
-

load_script_translation_file: 这个函数加载一个脚本的翻译文件。它用于将脚本中的文本字符串翻译成网站的适当语言。

过滤用于加载给定脚本句柄和文本域的脚本翻译的文件路径。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$file = apply_filters( 'load_script_translation_file', $file, $handle, $domain );
$file = apply_filters( 'load_script_translation_file', $file, $handle, $domain );
$file = apply_filters( 'load_script_translation_file', $file, $handle, $domain );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-04 17:32:32

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

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

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