最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - esc_html_e() is not translating string in wordpress

programmeradmin3浏览0评论
Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 5 years ago.

Improve this question

I am using esc_html_e() function as shown below to translate a string.

<h1><?php esc_html_e('Question', 'abcd'); ?> &nbsp;</h1>

On english page, it displays the right word Question but on taking the page to french it still shows the same word Question.

I am wondering what can be the reason behind this. I believe esc_html_e() function translates a string when different language page is requested.

发布评论

评论列表(0)

  1. 暂无评论