On this page
_ex( string $text, string $context, string $domain = 'default' )
Displays translated string with gettext context.
Parameters
$textstring Required-
Text to translate.
$contextstring Required-
Context information for the translators.
$domainstring Optional-
Text domain. Unique identifier for retrieving translated strings.
Default'default'.Default:
'default'
Source
File: wp-includes/l10n.php. View all references
function _ex( $text, $context, $domain = 'default' ) {
echo _x( $text, $context, $domain );
}
Related
Uses
| Uses | Description |
|---|---|
| _x() wp-includes/l10n.php | Retrieves translated string with gettext context. |
Used By
| Used By | Description |
|---|---|
| WP_Customize_Themes_Panel::render_template() wp-includes/customize/class-wp-customize-themes-panel.php | An Underscore (JS) template for rendering this panel’s container. |
| 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_print_revision_templates() wp-admin/includes/revision.php | Print JavaScript templates required for the revisions experience. |
| display_setup_form() wp-admin/install.php | Displays installer setup form. |
| install_theme_search_form() wp-admin/includes/theme-install.php | Displays search form for searching themes. |
| install_search_form() wp-admin/includes/plugin-install.php | Displays a search form for searching plugins. |
| install_plugin_information() wp-admin/includes/plugin-install.php | Displays plugin information in dialog box form. |
| 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. |
| media_upload_gallery_form() wp-admin/includes/media.php | Adds gallery form to upload iframe. |
| media_upload_form() wp-admin/includes/media.php | Outputs the legacy media upload form. |
| link_categories_meta_box() wp-admin/includes/meta-boxes.php | Displays link categories form fields. |
| post_submit_meta_box() wp-admin/includes/meta-boxes.php | Displays post submit form fields. |
| WP_Terms_List_Table::inline_edit() wp-admin/includes/class-wp-terms-list-table.php | Outputs the hidden row displayed when inline editing |
| 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_Background::admin_page() wp-admin/includes/class-custom-background.php | Displays the custom background page. |
| WP_Widget_Links::form() wp-includes/widgets/class-wp-widget-links.php | Outputs the settings form for the Links widget. |
| WP_Customize_Header_Image_Control::render_content() wp-includes/customize/class-wp-customize-header-image-control.php | |
| wp_print_media_templates() wp-includes/media-template.php | Prints the templates used in the media manager. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_ex