__() – Retrieve the translation of $text.
You appear to be a bot. Output may be restricted
Description
Retrieves the translation of $text.
If there is no translation, or the text domain isn't loaded, the original text is returned.
Usage
$string = __( $text, $domain );
Parameters
- $text
- ( string ) required – Text to translate.
- $domain
- ( string ) optional default: default – Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
Returns
string Translated text.
Source
File name: wordpress/wp-includes/l10n.php
Lines:
1 to 3 of 3
function __( $text, $domain = 'default' ) { return translate( $text, $domain ); }