esc_attr_e() - WordPress 函数参考中文文档

返回介绍

esc_attr_e()

发布于 2017-09-10 字数5605 浏览 829 评论 0

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

Display translated text that has been escaped for safe use in an attribute.


描述


参数

$text

(string)
(Required)
Text to translate.

$domain

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

Default value: ‘default’


源代码

File: wp-includes/l10n.php

function esc_attr_e( $text, $domain = 'default' ) {
	echo esc_attr( translate( $text, $domain ) );
}

更新日志

Version 描述
2.8.0 Introduced.

相关函数

Uses

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

Used By

  • wp-admin/includes/dashboard.php:
    wp_print_community_events_markup()
  • wp-includes/class-wp-customize-nav-menus.php:
    WP_Customize_Nav_Menus::print_custom_links_available_menu_item()
  • wp-admin/includes/class-wp-plugins-list-table.php:
    WP_Plugins_List_Table::search_box()
  • wp-includes/customize/class-wp-customize-site-icon-control.php:
    WP_Customize_Site_Icon_Control::content_template()
  • wp-includes/embed.php:
    print_embed_sharing_button()
  • wp-includes/embed.php:
    print_embed_sharing_dialog()
  • wp-includes/customize/class-wp-customize-nav-menu-location-control.php:
    WP_Customize_Nav_Menu_Location_Control::render_content()
  • wp-includes/customize/class-wp-customize-nav-menu-control.php:
    WP_Customize_Nav_Menu_Control::content_template()
  • wp-includes/class-wp-customize-nav-menus.php:
    WP_Customize_Nav_Menus::available_items_template()
  • wp-includes/customize/class-wp-customize-themes-section.php:
    WP_Customize_Themes_Section::render()
  • wp-admin/includes/class-wp-press-this.php:
    WP_Press_This::html()
  • wp-admin/includes/class-wp-press-this.php:
    WP_Press_This::categories_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-signup.php:
    signup_another_blog()
  • wp-signup.php:
    signup_user()
  • wp-signup.php:
    signup_blog()
  • wp-admin/install.php:
    display_setup_form()
  • wp-admin/includes/class-wp-screen.php:
    WP_Screen::render_screen_meta()
  • wp-admin/includes/image-edit.php:
    wp_image_editor()
  • wp-admin/includes/class-wp-theme-install-list-table.php:
    WP_Theme_Install_List_Table::theme_installer()
  • wp-admin/includes/plugin-install.php:
    install_search_form()
  • wp-admin/includes/plugin-install.php:
    install_plugins_favorites_form()
  • wp-admin/includes/dashboard.php:
    wp_dashboard_right_now()
  • wp-admin/includes/template.php:
    find_posts_div()
  • wp-admin/includes/media.php:
    media_upload_gallery_form()
  • wp-admin/includes/media.php:
    media_upload_form()
  • wp-admin/includes/meta-boxes.php:
    link_submit_meta_box()
  • wp-admin/includes/meta-boxes.php:
    link_categories_meta_box()
  • wp-admin/includes/meta-boxes.php:
    post_submit_meta_box()
  • wp-admin/includes/meta-boxes.php:
    attachment_submit_meta_box()
  • wp-admin/includes/meta-boxes.php:
    post_tags_meta_box()
  • wp-admin/includes/class-walker-nav-menu-edit.php:
    Walker_Nav_Menu_Edit::start_el()
  • wp-admin/includes/nav-menu.php:
    wp_nav_menu_item_link_meta_box()
  • wp-admin/includes/nav-menu.php:
    wp_nav_menu_item_post_type_meta_box()
  • wp-admin/includes/nav-menu.php:
    wp_nav_menu_item_taxonomy_meta_box()
  • wp-admin/includes/file.php:
    request_filesystem_credentials()
  • wp-admin/custom-header.php:
    Custom_Image_Header::step_1()
  • wp-admin/update-core.php:
    list_plugin_updates()
  • wp-admin/update-core.php:
    list_theme_updates()
  • wp-admin/update-core.php:
    list_translation_updates()
  • wp-admin/custom-background.php:
    Custom_Background::admin_page()
  • wp-includes/class-wp-admin-bar.php:
    WP_Admin_Bar::_render()
  • wp-includes/customize/class-wp-customize-header-image-control.php:
    WP_Customize_Header_Image_Control::render_content()
  • wp-includes/customize/class-wp-widget-area-customize-control.php:
    WP_Widget_Area_Customize_Control::render_content()
  • wp-includes/class-wp-customize-control.php:
    WP_Customize_Control::render_content()
  • wp-includes/class-wp-customize-widgets.php:
    WP_Customize_Widgets::output_widget_control_templates()
  • wp-includes/class-wp-editor.php:
    _WP_Editors::wp_link_dialog()
  • wp-includes/media-template.php:
    wp_print_media_templates()
  • Show 44 more used by
    Hide more used by


User Contributed Notes

上一篇:esc_attr()

下一篇:esc_attr_x()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!