WordPress开发者和主题制作者的搜索引擎



is_textdomain_loaded ›

Since3.0.0
已弃用n/a
is_textdomain_loaded ( $domain )
参数:
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
返回:
  • (bool) Whether there are translations.
定义在:
文档:

Whether there are translations for the text domain.



源码

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