WordPress at a glance

is_textdomain_loaded() WP 1.0

Whether there are translations for the text domain.

  • Global. Array. $l10n
✈ 1 time = 0.000027s = very fast | 50000 times = 0.01s = 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.

Code of is_textdomain_loaded: wp-includes/l10n.php VER 5.0.1

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

Related Functions

From tag: textdomain (mo po files)

More from tag: Conditional tags (all)

More from category: Localization

No comments
    Hello, !     Log In . Register