esc_attr_e( string $text, string $domain = 'default' )
Display translated text that has been escaped for safe use in an attribute.
Parameters
- $text
-
(Required) Text to translate.
- $domain
-
(Optional) Text domain. Unique identifier for retrieving translated strings. Default 'default'.
Default value: 'default'
Source
File: wp-includes/l10n.php
function esc_attr_e( $text, $domain = 'default' ) {
echo esc_attr( translate( $text, $domain ) );
}
Related
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 | Description |
---|---|
wp-signup.php: signup_blog() |
Setup the new site signup |
wp-signup.php: signup_user() |
Setup the new user signup process |
wp-signup.php: signup_another_blog() |
Allow returning users to sign up for another site |
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-themes-panel.php: WP_Customize_Themes_Panel::render_template() |
An Underscore (JS) template for rendering this panel’s container. |
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-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-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/customize/class-wp-customize-date-time-control.php: WP_Customize_Date_Time_Control::content_template() |
Renders a JS template for the content of date time control. |
wp-includes/customize/class-wp-customize-header-image-control.php: WP_Customize_Header_Image_Control::render_content() | |
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-widgets.php: WP_Customize_Widgets::output_widget_control_templates() |
Renders the widget form control templates into the DOM. |
wp-includes/media-template.php: wp_print_media_templates() |
Prints the templates used in the media manager. |
wp-includes/class-wp-customize-control.php: WP_Customize_Control::render_content() |
Render the control’s content. |
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/class-wp-admin-bar.php: WP_Admin_Bar::_render() | |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::render_control_templates() |
Render JS templates for all registered control types. |
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-nav-menus.php: WP_Customize_Nav_Menus::print_custom_links_available_menu_item() |
Print the markup for available menu item custom links. |
wp-includes/class-wp-editor.php: _WP_Editors::wp_link_dialog() |
Dialog for internal linking. |
wp-admin/custom-background.php: Custom_Background::admin_page() |
Display the custom background page. |
wp-admin/custom-header.php: Custom_Image_Header::step_1() |
Display first step of custom header image page. |
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/includes/class-wp-screen.php: WP_Screen::render_screen_meta() |
Render the screen’s help section. |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::views() |
Override parent views so we can use the filter bar display. |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::search_box() |
Displays the search box. |
wp-admin/includes/media.php: media_upload_form() |
Outputs the legacy media upload form. |
wp-admin/includes/media.php: media_upload_gallery_form() |
Adds gallery form to upload iframe |
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/image-edit.php: wp_image_editor() |
Loads the WP image-editing interface. |
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/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/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/class-walker-nav-menu-edit.php: Walker_Nav_Menu_Edit::start_el() |
Start the element output. |
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-wp-theme-install-list-table.php: WP_Theme_Install_List_Table::theme_installer() |
Prints the wrapper for the theme installer. |
wp-admin/includes/dashboard.php: wp_dashboard_right_now() |
Dashboard widget that displays some basic stats about the site. |
wp-admin/includes/revision.php: wp_print_revision_templates() |
Print JavaScript templates required for the revisions experience. |
Changelog
Version | Description |
---|---|
WP-2.8.0 | Introduced. |