W3cubDocs

/WordPress

is_textdomain_loaded( string $domain )

Whether there are translations for the text domain.

Parameters

$domain

(string) (Required) Text domain. Unique identifier for retrieving translated strings.

Return

(bool) Whether there are translations.

Source

File: wp-includes/l10n.php

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

Changelog

Version Description
3.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_textdomain_loaded