_e() WordPress Function

The e() function is used to escape HTML entities in strings. This function is especially useful when outputting data that might contain HTML tags, as it will ensure that the tags are not rendered in the browser.

_e( string $text, string $domain = 'default' ) #

Display translated text.


Parameters

$text

(string)(Required)Text to translate.

$domain

(string)(Optional) Text domain. Unique identifier for retrieving translated strings.

Default value: 'default'


Top ↑

Source

File: wp-includes/l10n.php

function _e( $text, $domain = 'default' ) {
	echo translate( $text, $domain );
}


Top ↑

Changelog

Changelog
VersionDescription
1.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.