Retrieves the translation of $text.
If there is no translation, or the text domain isn’t loaded, the original text is returned.
$textstringrequired
$domainstringoptional
'default'.Default:'default'
function __( $text, $domain = 'default' ) {
return translate( $text, $domain );
}
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/__