esc_attr_e()
最后更新于:2021-11-26 04:02:45
esc_attr_e( string$text, string$domain=’default’)Display translated text that has been escaped for safe use in an attribute.
参数
- $text
-
(string) (Required) Text to translate.
- $domain
-
(string) (Optional) Text domain. Unique identifier for retrieving translated strings.
Default value: ‘default’
源文件
文件: gc-includes/l10n.php
function esc_attr_e( $text, $domain = 'default' ) {
echo esc_attr( translate( $text, $domain ) );
}