常用函数-_ _()

0条评论

说明

检索来自 translate()的被翻译过的字符串

用法

<?php __( $text, $domain ) ?>

参数

$text

(字符串)(必需)需要翻译的文本

默认值:None

$domain

(字符串)(可选)检索被翻译文本的域名

默认值:'default'

返回的值

(字符串)

翻译后的内容

示例

注释

  • 参见_(),translate()的别名
  • l10n是localization的缩写形式
  • 该函数名是并列的两个短下划线,在某些字体中看起来像是一个长的下划线。

函数历史

始见于2.1.0版本

源文件

_ _()位于 wp-includes/110n.php中。

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.