首页 WordPress函数大全 esc_html__()

esc_html__()

2020-05-01 / 3188阅 / 悠然

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

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

Retrieve the translation of $text and escapes it for safe use in HTML output.

描述

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

参数

$text

(string)
(Required)
Text to translate.

$domain

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

Default value: 'default'

返回

(string) Translated text.

大家谈论
    我的见解