Core Function
View Source on Trac ↗ esc_html_x()
esc_html_x( mixed $text, mixed $context, mixed $domain = 'default' ) Translates string with gettext context, and escapes it for safe use in HTML output.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $text string | Text to translate. Required |
| $context string | Context information for the translators. Required |
| string | $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'. Required |
Return Value
(string)
Translated text.
Function Information
Since Version
2.9.0
Source File
wp-includes/l10n.php
Advertisement