_x

SummerySummery

Retrieve translated string with gettext context.

Syntax

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

DescriptionDescription

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.

ParametersParameters

$text

(string) (Required) Text to translate.

$context

(string) (Required) Context information for the translators.

$domain

(string) (Optional) Text domain. Unique identifier for retrieving translated strings.

Default value: 'default'

ReturnReturn

(string) Translated context string without pipe.

SourceSource

File: wp-includes/l10n.php


			

ChangelogChangelog

Changelog
Version Description
2.8.0 Introduced.
Scroll to Top