is_textdomain_loaded()

最后更新于:2021-11-27 11:49:23

is_textdomain_loaded( string$domain)

Whether there are translations for the text domain.

参数

$domain

(string) (Required) Text domain. Unique identifier for retrieving translated strings.

响应

(bool) Whether there are translations.

源文件

文件: gc-includes/l10n.php

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