WordPress开发者和主题制作者的搜索引擎



__ ›

Since2.1.0
已弃用n/a
__ ( $text, $domain = 'default' )
参数: (2)
  • (string) $text Text to translate.
    Required: Yes
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
    Required: No
    默认: 'default'
返回:
  • (string) Translated text.
定义在:
文档:

Retrieve the translation of $text.

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



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

源码

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