_x


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

Parameters:
  • (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'.
Returns:
  • (string) Translated context string without pipe.
Defined at:

Description

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

_ex, _nx, _, __, _c

Top Google Results

User discussions

wpseek mobile