wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



is_textdomain_loaded › WordPress Function

Da3.0.0
Deprecaton/a
is_textdomain_loaded ( $domain )
Parametri:
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Richiesto:
Ritorna:
  • (bool) Whether there are translations.
Definito a:
Codex:

Determines whether there are translations for the text domain.



Sorgenti

function is_textdomain_loaded( $domain ) {
	global $l10n;
	return isset( $l10n[ $domain ] ) && ! $l10n[ $domain ] instanceof NOOP_Translations;
}