esc_html__()
最后更新于:2021-11-26 04:03:37
esc_html__( string$text, string$domain=’default’)Retrieve the translation of $text and escapes it for safe use in HTML output.
参数
- $text
-
(string) (Required) Text to translate.
- $domain
-
(string) (Optional) Text domain. Unique identifier for retrieving translated strings.
Default value: ‘default’
响应
(string) Translated text.
源文件
文件: gc-includes/l10n.php
function esc_html__( $text, $domain = 'default' ) {
return esc_html( translate( $text, $domain ) );
}