esc_attr_e( string $text, string $domain = 'default' )
Display translated text that has been escaped for safe use in an attribute.
Description #Description
Parameters #Parameters
- $text
-
(string) (Required) Text to translate.
- $domain
-
(string) (Optional) Text domain. Unique identifier for retrieving translated strings.
Default value: 'default'
Source #Source
File: wp-includes/l10n.php
function esc_attr_e( $text, $domain = 'default' ) { echo esc_attr( translate( $text, $domain ) ); }
Expand full source code Collapse full source code View on Trac
Changelog #Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
Related #Related
Uses #Uses
Uses | Description |
---|---|
wp-includes/l10n.php: translate() |
Retrieve the translation of $text. |
wp-includes/formatting.php: esc_attr() |
Escaping for HTML attributes. |
Used By #Used By
Used By | Description |
---|---|
wp-includes/customize/class-wp-customize-themes-panel.php: WP_Customize_Themes_Panel::render_template() |
An Underscore (JS) template for rendering this panel’s container. |
wp-includes/customize/class-wp-customize-themes-section.php: WP_Customize_Themes_Section::render_template() |
Render a themes section as a JS template. |
wp-includes/customize/class-wp-customize-themes-section.php: WP_Customize_Themes_Section::filter_bar_content_template() |
Render the filter bar portion of a themes section as a JS template. |
wp-admin/includes/dashboard.php: wp_print_community_events_markup() |
Prints the markup for the Community Events section of the Events and News Dashboard widget. |
wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::print_custom_links_available_menu_item() |
Print the markup for available menu item custom links. |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::search_box() |
Displays the search box. |
wp-includes/customize/class-wp-customize-site-icon-control.php: WP_Customize_Site_Icon_Control::content_template() |
Renders a JS template for the content of the site icon control. |
wp-includes/embed.php: print_embed_sharing_button() |
Prints the necessary markup for the embed sharing button. |
wp-includes/embed.php: print_embed_sharing_dialog() |
Prints the necessary markup for the embed sharing dialog. |
wp-includes/customize/class-wp-customize-nav-menu-location-control.php: WP_Customize_Nav_Menu_Location_Control::render_content() |
Render content just like a normal select control. |
wp-includes/customize/class-wp-customize-nav-menu-control.php: WP_Customize_Nav_Menu_Control::content_template() |
JS/Underscore template for the control UI. |
wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::available_items_template() |
Print the html template used to render the add-menu-item frame. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::render_control_templates() |
Render JS templates for all registered control types. |
wp-admin/includes/revision.php: wp_print_revision_templates() |
Print JavaScript templates required for the revisions experience. |
wp-signup.php: signup_another_blog() |
Allow returning users to sign up for another site |
wp-signup.php: signup_user() |
Setup the new user signup process |
wp-signup.php: signup_blog() |
Setup the new site signup |
wp-admin/install.php: display_setup_form() |
Display installer setup form. |
wp-admin/includes/class-wp-screen.php: WP_Screen::render_screen_meta() |
Render the screen’s help section. |
wp-admin/includes/image-edit.php: wp_image_editor() |
Loads the WP image-editing interface. |
wp-admin/includes/class-wp-theme-install-list-table.php: WP_Theme_Install_List_Table::theme_installer() |
Prints the wrapper for the theme installer. |
wp-admin/includes/plugin-install.php: install_search_form() |
Displays a search form for searching plugins. |
wp-admin/includes/plugin-install.php: install_plugins_favorites_form() |
Show a username form for the favorites page |
wp-admin/includes/dashboard.php: wp_dashboard_quick_press() |
The Quick Draft widget display and creation of drafts. |
wp-admin/includes/template.php: find_posts_div() |
Outputs the modal window used for attaching media to posts or pages in the media-listing screen. |
wp-admin/includes/media.php: media_upload_gallery_form() |
Adds gallery form to upload iframe |
wp-admin/includes/media.php: media_upload_form() |
Outputs the legacy media upload form. |
wp-admin/includes/meta-boxes.php: link_submit_meta_box() |
Display link create form fields. |
wp-admin/includes/meta-boxes.php: link_categories_meta_box() |
Display link categories form fields. |
wp-admin/includes/meta-boxes.php: post_submit_meta_box() |
Displays post submit form fields. |
wp-admin/includes/meta-boxes.php: attachment_submit_meta_box() |
Display attachment submit form fields. |
wp-admin/includes/meta-boxes.php: post_tags_meta_box() |
Display post tags form fields. |
wp-admin/includes/nav-menu.php: wp_nav_menu_item_link_meta_box() |
Displays a meta box for the custom links menu item. |
wp-admin/includes/nav-menu.php: wp_nav_menu_item_post_type_meta_box() |
Displays a meta box for a post type menu item. |
wp-admin/includes/nav-menu.php: wp_nav_menu_item_taxonomy_meta_box() |
Displays a meta box for a taxonomy menu item. |
wp-admin/includes/file.php: request_filesystem_credentials() |
Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem. |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::step_1() |
Display first step of custom header image page. |
wp-admin/update-core.php: list_plugin_updates() |
Display the upgrade plugins form. |
wp-admin/update-core.php: list_theme_updates() |
Display the upgrade themes form. |
wp-admin/update-core.php: list_translation_updates() |
Display the update translations form. |
wp-admin/includes/class-custom-background.php: Custom_Background::admin_page() |
Display the custom background page. |
wp-includes/class-wp-admin-bar.php: WP_Admin_Bar::_render() | |
wp-includes/customize/class-wp-widget-area-customize-control.php: WP_Widget_Area_Customize_Control::render_content() |
Renders the control’s content. |
wp-includes/customize/class-wp-customize-header-image-control.php: WP_Customize_Header_Image_Control::render_content() | |
wp-includes/class-wp-customize-control.php: WP_Customize_Control::render_content() |
Render the control’s content. |
wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::output_widget_control_templates() |
Renders the widget form control templates into the DOM. |
wp-includes/class-wp-editor.php: _WP_Editors::wp_link_dialog() |
Dialog for internal linking. |
wp-includes/media-template.php: wp_print_media_templates() |
Prints the templates used in the media manager. |
User Contributed Notes #User Contributed Notes
You must log in before being able to contribute a note or feedback.
the esc_attr_e function it echoing the value for example: