EspañolDeutschFrançaisItalianoPortuguêsРусскийΕλληνικά日本語中文(简体)हिन्दी; हिंदीالعربية
既定の言語として設定します。
PF の質問 - フォーラム

複数の言語を使用してときにワードプレスのページの現在の言語を確認する方法?

この時点で使用されている言語を格納する変数を探してください。. ようなもの:

if ( $current_lang == 'es' ) {

 

Share on Facebook Tweet about this on Twitter Share on Google+ Pin on Pinterest Share on Reddit Share on VK Share on StumbleUpon Share on Tumblr Share on LinkedIn Email this to someone Print this page
ReilQ 聞かれるは 7 年
1 回答
最高の答え

簡単 ReilQ, 同様にテストします。:

if (get_locale() == 'es_ES') {

関数 get_locale() 戻ります, 言語によって, 型の文字列 ' en_US', ' en_GB', ' en_US’, …

Share on Facebook Tweet about this on Twitter Share on Google+ Pin on Pinterest Share on Reddit Share on VK Share on StumbleUpon Share on Tumblr Share on LinkedIn Email this to someone Print this page
Tirex いう 7 年