• <small id='pyia6'></small><noframes id='pyia6'>

      <legend id='pyia6'><style id='pyia6'><dir id='pyia6'><q id='pyia6'></q></dir></style></legend>
      <i id='pyia6'><tr id='pyia6'><dt id='pyia6'><q id='pyia6'><span id='pyia6'><b id='pyia6'><form id='pyia6'><ins id='pyia6'></ins><ul id='pyia6'></ul><sub id='pyia6'></sub></form><legend id='pyia6'></legend><bdo id='pyia6'><pre id='pyia6'><center id='pyia6'></center></pre></bdo></b><th id='pyia6'></th></span></q></dt></tr></i><div id='pyia6'><tfoot id='pyia6'></tfoot><dl id='pyia6'><fieldset id='pyia6'></fieldset></dl></div>
      1. <tfoot id='pyia6'></tfoot>
        • <bdo id='pyia6'></bdo><ul id='pyia6'></ul>

        使用polylang时如何确定wordpress页面的当前语言?

        How to determine the current language of a wordpress page when using polylang?(使用polylang时如何确定wordpress页面的当前语言?)
        • <bdo id='uCqjg'></bdo><ul id='uCqjg'></ul>
        • <i id='uCqjg'><tr id='uCqjg'><dt id='uCqjg'><q id='uCqjg'><span id='uCqjg'><b id='uCqjg'><form id='uCqjg'><ins id='uCqjg'></ins><ul id='uCqjg'></ul><sub id='uCqjg'></sub></form><legend id='uCqjg'></legend><bdo id='uCqjg'><pre id='uCqjg'><center id='uCqjg'></center></pre></bdo></b><th id='uCqjg'></th></span></q></dt></tr></i><div id='uCqjg'><tfoot id='uCqjg'></tfoot><dl id='uCqjg'><fieldset id='uCqjg'></fieldset></dl></div>

            <legend id='uCqjg'><style id='uCqjg'><dir id='uCqjg'><q id='uCqjg'></q></dir></style></legend>
              <tbody id='uCqjg'></tbody>
            1. <tfoot id='uCqjg'></tfoot>

              • <small id='uCqjg'></small><noframes id='uCqjg'>

                  本文介绍了使用polylang时如何确定wordpress页面的当前语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我搜索输出 polylang 插件当前使用的语言的变量.类似的东西:

                  I search for a variable that outputs the currently used language of the polylang plugin. Something like:

                  if($curlang == "en") {
                    ...
                  }
                  

                  推荐答案

                  我们可以使用 get_locale 函数:

                  We can use the get_locale function:

                  if (get_locale() == 'en_GB') {
                      // drink tea
                  }
                  

                  这篇关于使用polylang时如何确定wordpress页面的当前语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Proxy Authentication Required with cURL(cURL 需要代理身份验证)
                  How to use a SOCKS 5 proxy with cURL?(如何使用带有 cURL 的 SOCKS 5 代理?)
                  How to use HTTP_X_FORWARDED_FOR properly?(如何正确使用 HTTP_X_FORWARDED_FOR?)
                  file_get_contents behind a proxy?(代理后面的 file_get_contents ?)
                  pecl install cassandra throws: quot;error: Unable to load libcassandraquot;(pecl install cassandra 抛出:“错误:无法加载 libcassandra)
                  Installing php datastax driver on ubuntu(在 ubuntu 上安装 php datastax 驱动)

                      <small id='WYZio'></small><noframes id='WYZio'>

                        <bdo id='WYZio'></bdo><ul id='WYZio'></ul>
                      • <tfoot id='WYZio'></tfoot>

                        <i id='WYZio'><tr id='WYZio'><dt id='WYZio'><q id='WYZio'><span id='WYZio'><b id='WYZio'><form id='WYZio'><ins id='WYZio'></ins><ul id='WYZio'></ul><sub id='WYZio'></sub></form><legend id='WYZio'></legend><bdo id='WYZio'><pre id='WYZio'><center id='WYZio'></center></pre></bdo></b><th id='WYZio'></th></span></q></dt></tr></i><div id='WYZio'><tfoot id='WYZio'></tfoot><dl id='WYZio'><fieldset id='WYZio'></fieldset></dl></div>
                          • <legend id='WYZio'><style id='WYZio'><dir id='WYZio'><q id='WYZio'></q></dir></style></legend>
                              <tbody id='WYZio'></tbody>