WordPress“_e()"有什么作用?功能呢? [英] What does the WordPress "_e()" function do?

查看:27
本文介绍了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()

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

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