Uma área de pesquisa sobre o WordPress para devs e autores do tema



is_textdomain_loaded ›

Desde3.0.0
Obsoleton/a
is_textdomain_loaded ( $domain )
Parâmetros:
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
Retorna:
  • (bool) Whether there are translations.
Definido em:
Codex:

Whether there are translations for the text domain.



Fonte

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