On this page
_e( string $text, string $domain = 'default' )
Displays translated text.
Parameters
$textstring Required-
Text to translate.
$domainstring Optional-
Text domain. Unique identifier for retrieving translated strings.
Default'default'.Default:
'default'
Source
File: wp-includes/l10n.php. View all references
function _e( $text, $domain = 'default' ) {
echo translate( $text, $domain );
}
Related
Uses
| Uses | Description |
|---|---|
| translate() wp-includes/l10n.php | Retrieves the translation of $text. |
Used By
| Used By | Description |
|---|---|
| WP_Widget_Block::form() wp-includes/widgets/class-wp-widget-block.php | Outputs the Block widget settings form. |
| WP_Application_Passwords_List_Table::display_tablenav() wp-admin/includes/class-wp-application-passwords-list-table.php | Generates custom table navigation to prevent conflicting nonces. |
| core_auto_updates_settings() wp-admin/update-core.php | Display WordPress auto-updates settings. |
| wp_dashboard_site_health() wp-admin/includes/dashboard.php | Displays the Site Health Status widget. |
| WP_Privacy_Data_Removal_Requests_List_Table::column_next_steps() wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php | Next steps column. |
| WP_Privacy_Data_Export_Requests_List_Table::column_next_steps() wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php | Displays the next steps column. |
| WP_Posts_List_Table::formats_dropdown() wp-admin/includes/class-wp-posts-list-table.php | Displays a formats drop-down for filtering items. |
| wp_dashboard_php_nag() wp-admin/includes/dashboard.php | Displays the PHP update nag. |
| do_block_editor_incompatible_meta_box() wp-admin/includes/template.php | Renders a “fake” meta box with an information message, shown on the block editor, when an incompatible meta box is found. |
| WP_Privacy_Policy_Content::privacy_policy_guide() wp-admin/includes/class-wp-privacy-policy-content.php | Output the privacy policy guide together with content from the theme and plugins. |
| WP_Widget_Custom_HTML::render_control_template_scripts() wp-includes/widgets/class-wp-widget-custom-html.php | Render form template scripts. |
| WP_Customize_Themes_Panel::content_template() wp-includes/customize/class-wp-customize-themes-panel.php | An Underscore (JS) template for this panel’s content (but not its container). |
| WP_Customize_Themes_Section::render_template() wp-includes/customize/class-wp-customize-themes-section.php | Render a themes section as a JS template. |
| WP_Customize_Themes_Section::filter_bar_content_template() wp-includes/customize/class-wp-customize-themes-section.php | Render the filter bar portion of a themes section as a JS template. |
| wp_print_plugin_file_tree() wp-admin/includes/misc.php | Outputs the formatted file list for the plugin file editor. |
| wp_print_theme_file_tree() wp-admin/includes/misc.php | Outputs the formatted file list for the theme file editor. |
| wp_print_file_editor_templates() wp-admin/includes/file.php | Prints file editor templates (for plugins and themes). |
| WP_Widget_Text::render_control_template_scripts() wp-includes/widgets/class-wp-widget-text.php | Render form template scripts. |
| WP_Widget_Media_Audio::render_control_template_scripts() wp-includes/widgets/class-wp-widget-media-audio.php | Render form template scripts. |
| WP_Widget_Media_Video::render_control_template_scripts() wp-includes/widgets/class-wp-widget-media-video.php | Render form template scripts. |
| WP_Widget_Media_Image::render_control_template_scripts() wp-includes/widgets/class-wp-widget-media-image.php | Render form template scripts. |
| wp_print_community_events_markup() wp-admin/includes/dashboard.php | Prints the markup for the Community Events section of the Events and News Dashboard widget. |
| WP_Customize_Nav_Menus::print_post_type_container() wp-includes/class-wp-customize-nav-menus.php | Prints the markup for new menu items. |
| WP_Customize_Nav_Menus::print_custom_links_available_menu_item() wp-includes/class-wp-customize-nav-menus.php | Prints the markup for available menu item custom links. |
| WP_Customize_Background_Position_Control::content_template() wp-includes/customize/class-wp-customize-background-position-control.php | Render a JS template for the content of the position control. |
| wp_print_admin_notice_templates() wp-admin/includes/update.php | Prints the JavaScript templates for update admin notices. |
| print_embed_sharing_dialog() wp-includes/embed.php | Prints the necessary markup for the embed sharing dialog. |
| WP_Screen::render_meta_boxes_preferences() wp-admin/includes/class-wp-screen.php | Renders the meta boxes preferences. |
| WP_Screen::render_view_mode() wp-admin/includes/class-wp-screen.php | Renders the list table view mode preferences. |
| WP_Customize_Nav_Menu_Auto_Add_Control::content_template() wp-includes/customize/class-wp-customize-nav-menu-auto-add-control.php | Render the Underscore template for this control. |
| WP_Customize_New_Menu_Control::render_content() wp-includes/customize/class-wp-customize-new-menu-control.php | Render the control’s content. |
| WP_Customize_Nav_Menu_Location_Control::render_content() wp-includes/customize/class-wp-customize-nav-menu-location-control.php | Render content just like a normal select control. |
| WP_Customize_Nav_Menu_Item_Control::content_template() wp-includes/customize/class-wp-customize-nav-menu-item-control.php | JS/Underscore template for the control UI. |
| WP_Customize_Nav_Menu_Control::content_template() wp-includes/customize/class-wp-customize-nav-menu-control.php | JS/Underscore template for the control UI. |
| WP_Customize_Nav_Menus_Panel::content_template() wp-includes/customize/class-wp-customize-nav-menus-panel.php | An Underscore (JS) template for this panel’s content (but not its container). |
| WP_Customize_Panel::render_template() wp-includes/class-wp-customize-panel.php | An Underscore (JS) template for rendering this panel’s container. |
| WP_Customize_Panel::content_template() wp-includes/class-wp-customize-panel.php | An Underscore (JS) template for this panel’s content (but not its container). |
| WP_Customize_Nav_Menus::print_templates() wp-includes/class-wp-customize-nav-menus.php | Prints the JavaScript templates used to render Menu Customizer components. |
| WP_Customize_Nav_Menus::available_items_template() wp-includes/class-wp-customize-nav-menus.php | Prints the HTML template used to render the add-menu-item frame. |
| WP_Customize_Section::render_template() wp-includes/class-wp-customize-section.php | An Underscore (JS) template for rendering this section. |
| WP_Links_List_Table::column_visible() wp-admin/includes/class-wp-links-list-table.php | Handles the link visibility column output. |
| WP_MS_Themes_List_Table::column_cb() wp-admin/includes/class-wp-ms-themes-list-table.php | Handles the checkbox column output. |
| WP_Media_List_Table::column_parent() wp-admin/includes/class-wp-media-list-table.php | Handles the parent column output. |
| WP_Media_List_Table::column_title() wp-admin/includes/class-wp-media-list-table.php | Handles the title column output. |
| WP_Customize_Theme_Control::content_template() wp-includes/customize/class-wp-customize-theme-control.php | Render a JS template for theme display. |
| customize_themes_print_templates() wp-admin/includes/theme.php | Prints JS templates for the theme-browsing UI in the Customizer. |
| WP_Customize_Manager::render_control_templates() wp-includes/class-wp-customize-manager.php | Renders JS templates for all registered control types. |
| wp_print_revision_templates() wp-admin/includes/revision.php | Print JavaScript templates required for the revisions experience. |
| WP_Media_List_Table::views() wp-admin/includes/class-wp-media-list-table.php | Override parent views so we can use the filter bar display. |
| login_footer() wp-login.php | Outputs the footer for the login page. |
| show_user_form() wp-signup.php | Displays the fields for the new user account registration form. |
| signup_another_blog() wp-signup.php | Shows a form for returning users to sign up for another site. |
| signup_user() wp-signup.php | Shows a form for a visitor to sign up for a new user account. |
| confirm_user_signup() wp-signup.php | Shows a message confirming that the new user has been registered and is awaiting activation. |
| confirm_blog_signup() wp-signup.php | Shows a message confirming that the new site has been registered and is awaiting activation. |
| show_blog_form() wp-signup.php | Generates and displays the Sign-up and Create Site forms. |
| network_step1() wp-admin/includes/network.php | Prints step 1 for Network installation process. |
| network_step2() wp-admin/includes/network.php | Prints step 2 for Network installation process. |
| display_header() wp-admin/install.php | Display installation header. |
| display_setup_form() wp-admin/install.php | Displays installer setup form. |
| use_ssl_preference() wp-admin/includes/user.php | Optional SSL preference that can be turned on by hooking to the ‘personal_options’ action. |
| WP_MS_Users_List_Table::no_items() wp-admin/includes/class-wp-ms-users-list-table.php | |
| WP_Screen::render_screen_layout() wp-admin/includes/class-wp-screen.php | Renders the option for number of columns on the page. |
| WP_Screen::render_per_page_options() wp-admin/includes/class-wp-screen.php | Renders the items per page option. |
| WP_Screen::render_screen_meta() wp-admin/includes/class-wp-screen.php | Renders the screen’s help section. |
| WP_Plugins_List_Table::single_row() wp-admin/includes/class-wp-plugins-list-table.php | |
| WP_Plugins_List_Table::no_items() wp-admin/includes/class-wp-plugins-list-table.php | |
| WP_Links_List_Table::no_items() wp-admin/includes/class-wp-links-list-table.php | |
| install_theme_search_form() wp-admin/includes/theme-install.php | Displays search form for searching themes. |
| install_themes_dashboard() wp-admin/includes/theme-install.php | Displays tags filter for themes. |
| install_themes_upload() wp-admin/includes/theme-install.php | Displays a form to upload themes from zip files. |
| WP_List_Table::no_items() wp-admin/includes/class-wp-list-table.php | Message to be displayed when there are no items |
| WP_List_Table::months_dropdown() wp-admin/includes/class-wp-list-table.php | Displays a dropdown for filtering items in the list table by month. |
| choose_primary_blog() wp-admin/includes/ms.php | Handles the display of choosing a user’s primary site. |
| upload_space_setting() wp-admin/includes/ms.php | Displays the site upload space quota setting form on the Edit Site Settings screen. |
| wp_image_editor() wp-admin/includes/image-edit.php | Loads the WP image-editing interface. |
| WP_MS_Themes_List_Table::no_items() wp-admin/includes/class-wp-ms-themes-list-table.php | |
| admin_color_scheme_picker() wp-admin/includes/misc.php | Displays the default admin color scheme picker (Used in user-edit.php). |
| WP_Theme_Install_List_Table::install_theme_info() wp-admin/includes/class-wp-theme-install-list-table.php | Prints the info for a theme (to be used in the theme installer modal). |
| WP_Theme_Install_List_Table::no_items() wp-admin/includes/class-wp-theme-install-list-table.php | |
| WP_Theme_Install_List_Table::single_row() wp-admin/includes/class-wp-theme-install-list-table.php | Prints a theme from the WordPress.org API. |
| WP_Theme_Install_List_Table::theme_installer() wp-admin/includes/class-wp-theme-install-list-table.php | Prints the wrapper for the theme installer. |
| wp_welcome_panel() wp-admin/includes/dashboard.php | Displays a welcome panel to introduce users to WordPress. |
| install_dashboard() wp-admin/includes/plugin-install.php | Displays the Featured tab of Add Plugins screen. |
| install_search_form() wp-admin/includes/plugin-install.php | Displays a search form for searching plugins. |
| install_plugins_upload() wp-admin/includes/plugin-install.php | Displays a form to upload plugins from zip files. |
| install_plugins_favorites_form() wp-admin/includes/plugin-install.php | Shows a username form for the favorites page. |
| install_plugin_information() wp-admin/includes/plugin-install.php | Displays plugin information in dialog box form. |
| wp_dashboard_quota() wp-admin/includes/dashboard.php | Displays file upload quota on dashboard. |
| wp_network_dashboard_right_now() wp-admin/includes/dashboard.php | |
| wp_dashboard_quick_press() wp-admin/includes/dashboard.php | The Quick Draft widget display and creation of drafts. |
| default_password_nag() wp-admin/includes/user.php | |
| WP_Plugin_Install_List_Table::display_rows() wp-admin/includes/class-wp-plugin-install-list-table.php | |
| WP_Plugin_Install_List_Table::no_items() wp-admin/includes/class-wp-plugin-install-list-table.php | |
| _local_storage_notice() wp-admin/includes/template.php | Outputs the HTML for restoring the post data from DOM storage |
| find_posts_div() wp-admin/includes/template.php | Outputs the modal window used for attaching media to posts or pages in the media-listing screen. |
| iframe_header() wp-admin/includes/template.php | Generic Iframe header for use with Thickbox. |
| wp_comment_reply() wp-admin/includes/template.php | Outputs the in-line comment reply-to form in the Comments list table. |
| wp_comment_trashnotice() wp-admin/includes/template.php | Outputs ‘undo move to Trash’ text for comments. |
| list_meta() wp-admin/includes/template.php | Outputs a post’s public meta data in the Custom Fields meta box. |
| meta_form() wp-admin/includes/template.php | Prints the form in the Custom Fields meta box. |
| touch_time() wp-admin/includes/template.php | Prints out HTML form date elements for editing post or comment publish date. |
| wp_import_upload_form() wp-admin/includes/template.php | Outputs the form used by the importers to accept the data to be imported. |
| do_accordion_sections() wp-admin/includes/template.php | Meta Box Accordion Template Function. |
| WP_Themes_List_Table::no_items() wp-admin/includes/class-wp-themes-list-table.php | |
| WP_Themes_List_Table::display_rows() wp-admin/includes/class-wp-themes-list-table.php | |
| WP_MS_Sites_List_Table::no_items() wp-admin/includes/class-wp-ms-sites-list-table.php | |
| WP_Users_List_Table::no_items() wp-admin/includes/class-wp-users-list-table.php | Output ‘no users’ message. |
| WP_Users_List_Table::extra_tablenav() wp-admin/includes/class-wp-users-list-table.php | Output the controls to allow user roles to be changed in bulk. |
| media_upload_type_form() wp-admin/includes/media.php | Outputs the legacy media upload form for a given media type. |
| media_upload_type_url_form() wp-admin/includes/media.php | Outputs the legacy media upload form for external media. |
| media_upload_gallery_form() wp-admin/includes/media.php | Adds gallery form to upload iframe. |
| media_upload_library_form() wp-admin/includes/media.php | Outputs the legacy media upload form for the media library. |
| media_upload_html_bypass() wp-admin/includes/media.php | Displays the browser’s built-in uploader message. |
| edit_form_image_editor() wp-admin/includes/media.php | Displays the image and editor in the post editor |
| attachment_submitbox_metadata() wp-admin/includes/media.php | Displays non-editable attachment metadata in the publish meta box. |
| media_upload_form() wp-admin/includes/media.php | Outputs the legacy media upload form. |
| wp_iframe() wp-admin/includes/media.php | Outputs the iframe to display the media upload page. |
| _admin_notice_post_locked() wp-admin/includes/post.php | Outputs the HTML for the notice to say that someone else is editing or has taken over editing of this post. |
| post_trackback_meta_box() wp-admin/includes/meta-boxes.php | Displays trackback links form fields. |
| post_comment_status_meta_box() wp-admin/includes/meta-boxes.php | Displays comments status form fields. |
| post_comment_meta_box() wp-admin/includes/meta-boxes.php | Displays comments for post. |
| post_slug_meta_box() wp-admin/includes/meta-boxes.php | Displays slug form fields. |
| post_author_meta_box() wp-admin/includes/meta-boxes.php | Displays form field with list of authors. |
| page_attributes_meta_box() wp-admin/includes/meta-boxes.php | Displays page attributes form fields. |
| link_submit_meta_box() wp-admin/includes/meta-boxes.php | Displays link create form fields. |
| link_categories_meta_box() wp-admin/includes/meta-boxes.php | Displays link categories form fields. |
| link_target_meta_box() wp-admin/includes/meta-boxes.php | Displays form fields for changing link target. |
| link_xfn_meta_box() wp-admin/includes/meta-boxes.php | Displays XFN form fields. |
| link_advanced_meta_box() wp-admin/includes/meta-boxes.php | Displays advanced link options form fields. |
| post_submit_meta_box() wp-admin/includes/meta-boxes.php | Displays post submit form fields. |
| post_format_meta_box() wp-admin/includes/meta-boxes.php | Displays post format form elements. |
| post_excerpt_meta_box() wp-admin/includes/meta-boxes.php | Displays post excerpt form fields. |
| WP_Media_List_Table::no_items() wp-admin/includes/class-wp-media-list-table.php | |
| WP_Comments_List_Table::no_items() wp-admin/includes/class-wp-comments-list-table.php | |
| WP_Comments_List_Table::column_cb() wp-admin/includes/class-wp-comments-list-table.php | |
| WP_Terms_List_Table::inline_edit() wp-admin/includes/class-wp-terms-list-table.php | Outputs the hidden row displayed when inline editing |
| Walker_Nav_Menu_Edit::start_el() wp-admin/includes/class-walker-nav-menu-edit.php | Start the element output. |
| wp_nav_menu_item_link_meta_box() wp-admin/includes/nav-menu.php | Displays a meta box for the custom links menu item. |
| wp_nav_menu_item_post_type_meta_box() wp-admin/includes/nav-menu.php | Displays a meta box for a post type menu item. |
| wp_nav_menu_item_taxonomy_meta_box() wp-admin/includes/nav-menu.php | Displays a meta box for a taxonomy menu item. |
| request_filesystem_credentials() wp-admin/includes/file.php | Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem. |
| WP_Posts_List_Table::inline_edit() wp-admin/includes/class-wp-posts-list-table.php | Outputs the hidden row displayed when inline editing |
| wp_widget_control() wp-admin/includes/widgets.php | Meta widget used to display the control form for a widget. |
| Custom_Image_Header::step_1() wp-admin/includes/class-custom-image-header.php | Display first step of custom header image page. |
| Custom_Image_Header::step_2() wp-admin/includes/class-custom-image-header.php | Display second step of custom header image page. |
| Custom_Image_Header::show_header_selector() wp-admin/includes/class-custom-image-header.php | Display UI for selecting one of several default headers. |
| confirm_delete_users() wp-admin/includes/ms.php | |
| core_upgrade_preamble() wp-admin/update-core.php | Display upgrade WordPress for downloading latest or upgrading automatically form. |
| list_plugin_updates() wp-admin/update-core.php | Display the upgrade plugins form. |
| list_theme_updates() wp-admin/update-core.php | Display the upgrade themes form. |
| list_translation_updates() wp-admin/update-core.php | Display the update translations form. |
| do_core_upgrade() wp-admin/update-core.php | Upgrade WordPress core display. |
| Custom_Background::admin_page() wp-admin/includes/class-custom-background.php | Displays the custom background page. |
| wp_auth_check_html() wp-includes/functions.php | Outputs the HTML that shows the wp-login dialog when the user is no longer logged in. |
| WP_Nav_Menu_Widget::form() wp-includes/widgets/class-wp-nav-menu-widget.php | Outputs the settings form for the Navigation Menu widget. |
| WP_Widget_Recent_Comments::form() wp-includes/widgets/class-wp-widget-recent-comments.php | Outputs the settings form for the Recent Comments widget. |
| WP_Widget_Tag_Cloud::form() wp-includes/widgets/class-wp-widget-tag-cloud.php | Outputs the Tag Cloud widget settings form. |
| WP_Widget_Recent_Posts::form() wp-includes/widgets/class-wp-widget-recent-posts.php | Outputs the settings form for the Recent Posts widget. |
| WP_Widget_Categories::form() wp-includes/widgets/class-wp-widget-categories.php | Outputs the settings form for the Categories widget. |
| WP_Widget_Text::form() wp-includes/widgets/class-wp-widget-text.php | Outputs the Text widget settings form. |
| WP_Widget_Calendar::form() wp-includes/widgets/class-wp-widget-calendar.php | Outputs the settings form for the Calendar widget. |
| WP_Widget_Meta::widget() wp-includes/widgets/class-wp-widget-meta.php | Outputs the content for the current Meta widget instance. |
| WP_Widget_Meta::form() wp-includes/widgets/class-wp-widget-meta.php | Outputs the settings form for the Meta widget. |
| WP_Widget_Archives::form() wp-includes/widgets/class-wp-widget-archives.php | Outputs the settings form for the Archives widget. |
| WP_Widget_Search::form() wp-includes/widgets/class-wp-widget-search.php | Outputs the settings form for the Search widget. |
| WP_Widget_Links::form() wp-includes/widgets/class-wp-widget-links.php | Outputs the settings form for the Links widget. |
| WP_Widget_Pages::form() wp-includes/widgets/class-wp-widget-pages.php | Outputs the settings form for the Pages widget. |
| wp_widget_rss_form() wp-includes/widgets.php | Display RSS widget options form. |
| WP_Admin_Bar::_render() wp-includes/class-wp-admin-bar.php | |
| wp_rss() wp-includes/rss.php | Display all RSS items in a HTML ordered list. |
| WP_Customize_Header_Image_Control::print_header_image_template() wp-includes/customize/class-wp-customize-header-image-control.php | |
| WP_Customize_Header_Image_Control::render_content() wp-includes/customize/class-wp-customize-header-image-control.php | |
| WP_Widget_Area_Customize_Control::render_content() wp-includes/customize/class-wp-widget-area-customize-control.php | Renders the control’s content. |
| WP_Customize_Control::render_content() wp-includes/class-wp-customize-control.php | Render the control’s content. |
| Walker_Comment::ping() wp-includes/class-walker-comment.php | Outputs a pingback comment. |
| comments_popup_link() wp-includes/comment-template.php | Displays the link to the comments for the current post ID. |
| WP_Customize_Widgets::output_widget_control_templates() wp-includes/class-wp-customize-widgets.php | Renders the widget form control templates into the DOM. |
| _WP_Editors::wp_link_dialog() wp-includes/class-wp-editor.php | Dialog for internal linking. |
| wp_print_media_templates() wp-includes/media-template.php | Prints the templates used in the media manager. |
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_e