WordPress的"_e()"是什么?功能呢? [英] What does the WordPress "_e()" function do?

查看:102
本文介绍了WordPress的"_e()"是什么?功能呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在主题中都有这些内容,如果删除它们,则该主题没有任何反应.它有什么作用?我应该把它们留在里面还是不必要?我想优化网站以使其加载速度更快,所以这就是我要问的原因.

I have these all over my theme, and when if I delete them, there nothing happens to the theme. What does it do? Should I leave them in or are they unnecessary? I want to optimize my site to load faster, so this is why I'm asking.

推荐答案

https://developer.wordpress.org/reference/functions/_e/

在WordPress中,将php文件中的字符串标记为可翻译为其他语言,并使用两个实际上是功能的标签"进行本地化.他们是:

In WordPress, strings in the php files are marked for translation to other languages, and localization using two "tags" which are actually functions. They are:

__() _e()

__() _e()

这篇关于WordPress的"_e()"是什么?功能呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆