is_textdomain_loaded

函数


is_textdomain_loaded ( $domain )
参数
  • (string)
    $domain
    Text domain. Unique identifier for retrieving translated strings.
    Required:
返回值
  • (bool) Whether there are translations.
定义位置
  • wp-includes/l10n.php
    , line 1325
引入
3.0.0
弃用

Determines whether there are translations for the text domain.

function is_textdomain_loaded( $domain ) {
	global $l10n;
	return isset( $l10n[ $domain ] );
}