_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: - Introduced in WordPress: 2.8.0
- Deprecated in WordPress: —
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.