函数原型
is_textdomain_loaded( string $domain ): bool
函数描述
Determines whether there are translations for the text domain.
是否弃用
未弃用
函数参数
-
$domain
string
Required - Text domain. Unique identifier for retrieving translated strings.
函数返回值
bool Whether there are translations.
函数位置
File: wp-includes/l10n.php.
函数源码
function is_textdomain_loaded( $domain ) {
global $l10n;
return isset( $l10n[ $domain ] );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |

