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



esc_html__ › WordPress Function

Da2.8.0
Deprecaton/a
esc_html__ ( $text, $domain = 'default' )
Parametri: (2)
  • (string) $text Text to translate.
    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:

Retrieves the translation of $text 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__( $text, $domain = 'default' ) {
	return esc_html( translate( $text, $domain ) );
}