WordPress at a glance

esc_html__() WP 1.0

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

Works based on: translate(), esc_html()

No Hooks.


String. Translated text


esc_html__( $text, $domain );
$text(string) (required)
Text to translate.
Text domain. Unique identifier for retrieving translated strings.
Default: 'default'

Code of esc_html__: wp-includes/l10n.php VER 4.9.8

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

Related Functions

From category: Localization

No comments
    Hello, !     Log In . Register