__

Advertisement

Summery Summery

Retrieve the translation of $text.

Syntax Syntax

__( string $text, string $domain = 'default' )

Description Description

If there is no translation, or the text domain isn’t loaded, the original text is returned.

Parameters Parameters

$text

(Required) Text to translate.

$domain

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

Default value: 'default'

Return Return

(string) Translated text.

Source Source

File: wp-includes/l10n.php

	 * @param string $text        Text to translate.
	 * @param string $context     Context information for the translators.
	 * @param string $domain      Text domain. Unique identifier for retrieving translated strings.

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply