On this page
is_textdomain_loaded( string $domain ): bool
Determines whether there are translations for the text domain.
Parameters
$domainstring Required-
Text domain. Unique identifier for retrieving translated strings.
Return
bool Whether there are translations.
Source
File: wp-includes/l10n.php. View all references
function is_textdomain_loaded( $domain ) {
global $l10n;
return isset( $l10n[ $domain ] );
}
Related
Used By
| Used By | Description |
|---|---|
| _get_plugin_data_markup_translate() wp-admin/includes/plugin.php | Sanitizes plugin data, optionally adds markup, optionally translates. |
| WP_Theme::load_textdomain() wp-includes/class-wp-theme.php | Loads the theme’s textdomain. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_textdomain_loaded