is_textdomain_loaded() – Determines whether there are translations for the text domain.
You appear to be a bot. Output may be restricted
Description
Determines whether there are translations for the text domain.
Usage
$bool = is_textdomain_loaded( $domain );
Parameters
- $domain
- ( string ) required – Text domain. Unique identifier for retrieving translated strings.
Returns
bool Whether there are translations.
Source
File name: wordpress/wp-includes/l10n.php
Lines:
1 to 5 of 5
function is_textdomain_loaded( $domain ) { global $l10n; return isset( $l10n[ $domain ] ) && ! $l10n[ $domain ] instanceof NOOP_Translations; }