is_textdomain_loaded() WordPress Function
is_textdomain_loaded() is a function that checks if a given textdomain has been loaded. This is useful for checking if a plugin or theme has been loaded before using it.
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 ] ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |