is_textdomain_loaded
Whether there are translations for the text domain.
Description
is_textdomain_loaded( (string) $domain );
Parameters (1)
- 0. $domain (string)
- Text domain. Unique identifier for retrieving translated strings.
Usage
if ( !function_exists( 'is_textdomain_loaded' ) ) { require_once ABSPATH . WPINC . '/l10n.php'; } // Text domain. Unique identifier for retrieving translated strings. $domain = ''; // NOTICE! Understand what this does before running. $result = is_textdomain_loaded($domain);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/l10n.php
- function is_textdomain_loaded( $domain ) {
- global $l10n;
- return isset( $l10n[ $domain ] );
- }