esc_html__() – Retrieve the translation of $text and escapes it for safe use in HTML output.

You appear to be a bot. Output may be restricted

Description

Retrieve 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.

Usage

$string = esc_html__( $text, $domain );

Parameters

$text
( string ) required – Text to translate.
$domain
( string ) optional default: default – Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.

Returns

string Translated text.

Source

File name: wordpress/wp-includes/l10n.php
Lines:

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

 View on GitHub View on Trac