esc_attr_e
Display translated text that has been escaped for safe use in an attribute.
Description
Parameters (2)
- 0. $text (string)
- Text to translate.
- 1. $domain — Optional. (string) =>
'default'
- Text domain. Unique identifier for retrieving translated strings. Default default..
Usage
if ( !function_exists( 'esc_attr_e' ) ) { require_once ABSPATH . WPINC . '/l10n.php'; } // Text to translate. $text = ''; // Optional. Text domain. Unique identifier for retrieving translated strings. // Default 'default'. $domain = 'default'; // NOTICE! Understand what this does before running. $result = esc_attr_e($text, $domain);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/l10n.php
- function esc_attr_e( $text, $domain = 'default' ) {
- }