wpseek.com
A WordPress-centric search engine for devs and theme authors



is_textdomain_loaded › WordPress Function

Since3.0.0
Deprecatedn/a
is_textdomain_loaded ( $domain )
Parameters:
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
Returns:
  • (bool) Whether there are translations.
Defined at:
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;
}