Home / APIs / __() – Retrieve the translation of $text.

You appear to be a bot. Output may be restricted

Description

Retrieve the translation of $text.

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

Usage

$string = __( $text, $domain );

Parameters

$text
( string ) required – Text to translate.
$domain
( string ) optional default: default – Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.

Returns

string Translated text.

Source

File name: wordpress/wp-includes/l10n.php
Lines: 1 to 3 of 3

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

 View on GitHub View on Trac

Published: 4th August 2017 | Last updated: 17th November 2017

Information

Function name: __
Plugin ref: WordPress
Version: 5.0.3
Sourcefile: wp-includes/l10n.php
File ref: wp-includes/l10n.php
API type: private
Deprecated?: No
API Letters: _

  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Files
  • Hooks
  • Classes
  • Home
  • Sites
  • Sitemap
  • Blog
oik-plugins WordPress a2z
WordPress Dynamic API Reference

Site:  wp-a2z.org
© Copyright oik-plugins 2014-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins