^ 回到顶部
  • 人生没有定律,每个人都有自己的节奏
  • 本站wordpress建站教程均通过实践后发布,希望对你有帮助
  • 希望你的坚持,都是因为热爱,而不是因为不甘心
  • 8年wordpress建站经验,5星服务品质
  • 那些不愿意让你吃亏的人,才是真正值得你深交的人,也是值得你付出时间的人
  • 阿里云2核2g仅需86元/年

wordpress函数esc_html_e()用法示例

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

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


描述


参数

$text

(string)
(Required)
Text to translate.

新用户2核2g仅需86元/年    领取1153套模板    免费cdn流量包    ¥3188礼包

$domain

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

Default value: ‘default’


源代码

File: wp-includes/l10n.php

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

更新日志

Version 描述
2.8.0 Introduced.

相关函数

Uses

  • wp-includes/l10n.php:
    translate()
  • wp-includes/formatting.php:
    esc_html()

Used By

  • wp-includes/widgets/class-wp-widget-text.php:
    WP_Widget_Text::render_control_template_scripts()
  • wp-includes/widgets/class-wp-widget-media.php:
    WP_Widget_Media::render_control_template_scripts()
  • wp-includes/embed.php:
    print_embed_sharing_dialog()
  • wp-admin/includes/class-wp-press-this.php:
    WP_Press_This::html()
  • wp-admin/includes/revision.php:
    wp_print_revision_templates()
  • wp-admin/includes/class-wp-media-list-table.php:
    WP_Media_List_Table::views()
  • wp-admin/includes/network.php:
    network_step1()
  • wp-admin/includes/network.php:
    network_step2()
  • wp-admin/includes/image-edit.php:
    wp_image_editor()
  • wp-admin/includes/ms.php:
    confirm_delete_users()
  • wp-includes/media-template.php:
    wp_print_media_templates()
  • Show 6 more used by
    Hide more used by


让小雨知道,这篇文章帮到了你
扫码关注微信公众号zs40086(微搜片)随时随地微信看片,抢先福利电影等你来

热门推荐

如有疑问,请前往问答中心反馈!

反馈