wordpress / latest / functions / __.html

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

Retrieves the translation of $text.

Description

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

Parameters

$text string Required
Text to translate.
$domain string Optional
Text domain. Unique identifier for retrieving translated strings.
Default 'default'.

Default: 'default'

Return

string Translated text.

Source

File: wp-includes/l10n.php. View all references

function __( $text, $domain = 'default' ) {
	return translate( $text, $domain );
}

Uses

Uses Description

Used By

Used By Description

Changelog

Version Description
2.1.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/__