wpseek.com
A WordPress-centric search engine for devs and theme authors



__ › WordPress Function

Since2.1.0
Deprecatedn/a
__ ( $text, $domain = 'default' )
Parameters: (2)
  • (string) $text Text to translate.
    Required: Yes
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
    Required: No
    Default: 'default'
Returns:
  • (string) Translated text.
Defined at:
Codex:

Retrieves the translation of $text.

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


Related Functions: _, _c, _e, _n, _x

Source

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