translate_with_gettext_context ( $text, $context, $domain = 'default' )

  • (string) text Text to translate.
  • (string) context Context information for the translators.
  • (string) domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
  • (string) Translated text on success, original text on failure.
Defined at:
Change Log:
  • 5: .


Retrieves the translation of $text in the context defined in $context.If there is no translation, or the text domain isn't loaded, the original text is returned. *Note:* Don't use translate_with_gettext_context() directly, use _x() or related functions.

Related Functions

translate_with_context, translate_level_to_role, translate_user_role, register_widget_control, wp_style_engine_get_stylesheet_from_context

Top Google Results

User discussions

wpseek mobile