get_translations_for_domain()
get_translations_for_domain( string $domain )
返回文本域的翻译实例。
Return the Translations instance for a text domain.
说明(Description)
如果没有,则返回空的翻译实例。
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$domain | (string) | 必需 | 文本域。检索转换字符串的唯一标识符。 |
返回(Return)
(Translations|NOOP_Translations)翻译实例。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.8.0 | wp-includes/l10n.php:1236 | 5 | 1 function |
get_translations_for_domain() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_translations_for_domain/