WordPress at a glance

is_textdomain_loaded() WP 1.0

Whether there are translations for the text domain.

1 time — 0.000027 sec (very fast) | 50000 times — 0.01 sec (speed of light) | PHP 7.1.5, WP 4.8.2

No Hooks.


true|false. Whether there are translations.


is_textdomain_loaded( $domain );
$domain(string) (required)
Text domain. Unique identifier for retrieving translated strings.


  • Global. MO[]. $l10n


Since 3.0.0 Introduced.

Code of is_textdomain_loaded() WP 5.7.1

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

From tag: textdomain (mo po files)

More from tag: localize (l10n i18n Internationalization localization)

More from tag: Conditional tags (all)

No comments
    Log In