load_script_translations
apply_filters( ‘load_script_translations’, string $translations , string $file , string $handle , string $domain )
筛选挂钩:筛选给定文件、脚本句柄和文本域的脚本翻译。
Filter Hook: Filters script translations for the given file, script handle and text domain.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$translations | (string) | JSON编码的翻译数据。 |
$file | (string) | 加载的翻译文件的路径。 |
$handle | (string) | 要向其注册翻译域的脚本的名称。 |
$domain | (string) | 文本域。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.0.2 | wp-includes/l10n.php:1108 | 1 | 0 |
load_script_translations 为WP2原创文章,链接:https://www.wp2.cn/hook/load_script_translations-2/