_x ( $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 context string without pipe.
Defined at:


Retrieves translated string with gettext context.Quite a few times, there will be collisions with similar translatable text found in more than two places, but with different translated context. By including the context in the pot file, translators can translate the two strings differently.

Related Functions

_nx, _ex, _, __, _c

Top Google Results

User discussions

wpseek mobile