WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/ e

Description

Displays the returned translated text from translate().

Usage

<?php _e$text$domain ?>

Parameters

$text
(string) (required) Text to translate
Default: None
$domain
(string) (optional) Domain to retrieve the translated text
Default: 'default'

Return Values

(void) 
This function does not return a value.

Examples

Display some translated text:

<?php _e( 'Some text to translate and display.', 'textdomain' ); ?>

Notes

  • Echos returned translate() string.
  • l10n is an abbreviation for localization.

Change Log

Source File

_e() is located in wp-includes/l10n.php.

Related

L10n: translate(), __(), _e(), _n(), _x(), _ex(), _nx(), esc_attr__(), esc_attr_e(), esc_attr_x(), esc_html__(), esc_html_e(), esc_html_x(), _n_noop(), _nx_noop(), translate_nooped_plural()

See also index of Function Reference and index of Template Tags.