显示翻译文本。
原型
_e( string $text, string $domain = 'default' )
参数
$text
(string)
(Required)
要翻译的文字。
$domain
(string)
(Optional)
文字域名。用于检索已翻译字符串的唯一标识符
源文件
路径:wp-includes/l10n.php
<?php
...
function _e( $text, $domain = 'default' ) {
echo translate( $text, $domain );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/_e/