首页 WordPress函数大全 esc_html_e()

esc_html_e()

2020-05-01 / 6392阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

esc_html_e( string $text, string $domain = 'default' )

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

描述

If there is no translation, or the text domain isn’t loaded, the original text is escaped and displayed.

If you need the value for use in PHP, use esc_html__().

参数

$text

(string)
(Required)
Text to translate.

$domain

(string)
(Optional)
Text domain. Unique identifier for retrieving translated strings.

Default value: 'default'

大家谈论
    我的见解