A WordPress-centric search engine for devs and theme authors



is_textdomain_loaded ›

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:

Whether there are translations for the text domain.



Source

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