load_script_translations

过滤钩子
apply_filters( 'load_script_translations', $translations, $file, $handle, $domain )
参数
  • (string) $translations JSON-encoded translation data.
    Required:
  • (string) $file Path to the translation file that was loaded.
    Required:
  • (string) $handle Name of the script to register a translation domain to.
    Required:
  • (string) $domain The text domain.
    Required:
定义位置
相关勾子
pre_load_script_translationsload_script_translation_fileasync_update_translationload_script_textdomain_relative_pathwp_mce_translation
相关方法
load_script_translationswp_set_script_translationsload_script_textdomainwp_load_translations_earlylist_translation_updateswp_get_translation_updates
引入
5.0.2
弃用
-

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

过滤给定文件、脚本句柄和文本域的脚本翻译。

return apply_filters( 'load_script_translations', $translations, $file, $handle, $domain );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-14 12:36:31

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

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

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