WordPress at a glance

esc_attr_e() WP 1.0

Display translated text that has been escaped for safe use in an attribute.

Works based on: esc_attr()

No Hooks.


Nothing (null).


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

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

function esc_attr_e( $text, $domain = 'default' ) {
	echo esc_attr( translate( $text, $domain ) );

Related Functions

From category: Localization

No comments
    Hello, !     Log In . Register