首页 WordPress函数大全 load_script_translations()

load_script_translations()

2020-05-02 / 3821阅 / 悠然

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

load_script_translations( string|false $file, string $handle, string $domain )

加载给定脚本句柄和文本域的翻译数据。

描述

参数

$file

(string|false)
(Required)
Path to the translation file to load. False if there isn't>
(string)
(Required)
Name of the script to register a translation domain to.

$domain

(string)
(Required)
The text domain.

返回

(string|false) The JSON-encoded translated strings for the given script handle and text domain. False if there are none.

大家谈论
    我的见解