Summery Summery
Display translated string with gettext context.
Syntax Syntax
Parameters Parameters
- $text
-
(Required) Text to translate.
- $context
-
(Required) Context information for the translators.
- $domain
-
(Optional) Text domain. Unique identifier for retrieving translated strings. Default 'default'.
Default value: 'default'
Return Return
(string) Translated context string without pipe.
Source Source
File: wp-includes/l10n.php
echo esc_html( translate( $text, $domain ) ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |