wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



esc_html_x › WordPress Function

Da2.9.0
Deprecaton/a
esc_html_x ( $text, $context, $domain = 'default' )
Parametri: (3)
  • (string) $text Text to translate.
    Richiesto:
  • (string) $context Context information for the translators.
    Richiesto:
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
    Richiesto: No
    Default: 'default'
Ritorna:
  • (string) Translated text.
Definito a:
Codex:

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

If there is no translation, or the text domain isn't loaded, the original text is escaped and returned.


Sorgenti

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