WordPress at a glance
function is not described

esc_html_x() WP 2.9.0

Translate string with gettext context, and escapes it for safe use in HTML output.

No Hooks.


String. Translated text.


esc_html_x( $text, $context, $domain );
$text(string) (required)
Text to translate.
$context(string) (required)
Context information for the translators.
Text domain. Unique identifier for retrieving translated strings.
Default: 'default'

Code of esc html x: wp-includes/l10n.php WP 5.2.2

function esc_html_x( $text, $context, $domain = 'default' ) {
	return esc_html( translate_with_gettext_context( $text, $context, $domain ) );