wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



esc_html__ › WordPress Function

Depuis2.8.0
Dépréciéen/a
esc_html__ ( $text, $domain = 'default' )
Paramètres: (2)
  • (string) $text Text to translate.
    Requis: Oui
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
    Requis: Non
    Défaut: 'default'
Retourne:
  • (string) Translated text.
Défini(e) dans:
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.


Fonctions en relation: esc_html_e, esc_html_x, esc_html, esc_xml, esc_attr__

Source

function esc_html__( $text, $domain = 'default' ) {
	return esc_html( translate( $text, $domain ) );
}