esc_html_x


esc_html_x ( $text, $context, $domain = 'default' )

Parameters:
  • (string) $text Text to translate.
  • (string) $context Context information for the translators.
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
Returns:
  • (string) Translated text.
Defined at:

Description

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

Related Functions

esc_html__, esc_html_e, esc_html, esc_attr_x, esc_attr__

Top Google Results

User discussions

wpseek mobile