_ex

Advertisement

Summery Summery

Display translated string with gettext context.

Syntax Syntax

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

Parameters Parameters

$text

(Required) Text to translate.

$context

(Required) Context information for the translators.

$domain

(Optional) Text domain. Unique identifier for retrieving translated strings. Default 'default'.

Default value: 'default'

Return Return

(string) Translated context string without pipe.

Source Source

File: wp-includes/l10n.php

	echo esc_html( translate( $text, $domain ) );
}

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply