wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



is_textdomain_loaded › WordPress Function

Depuis3.0.0
Dépréciéen/a
is_textdomain_loaded ( $domain )
Paramètres:
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Requis: Oui
Retourne:
  • (bool) Whether there are translations.
Défini(e) dans:
Codex:

Determines whether there are translations for the text domain.



Source

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