WordPress开发者和主题制作者的搜索引擎



esc_html_e ›

Since2.8.0
已弃用n/a
esc_html_e ( $text, $domain = 'default' )
参数: (2)
  • (string) $text Text to translate.
    Required: Yes
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
    Required: No
    默认: 'default'
定义在:
文档:

Display translated text that has been escaped for safe use in HTML output.



源码

function esc_html_e( $text, $domain = 'default' ) {
	echo esc_html( translate( $text, $domain ) );
}