WordPress.org

Hong Kong 香港中文

  • 佈景主題
  • 外掛
  • News
  • Support
  • About
  • 重要通知
  • WordPress 常見問題
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Disable Login Language Selector

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

Disable Login Language Selector

由Rick Curran
下載
  • 詳情
  • 評價
  • 安裝
  • 開發
支援

描述

WordPress 5.9 added a new language selector to allow users to switch languages from a dropdown on the login screen if more than one language is enabled on your WordPress installation. This plugin provides a quick and easy way to prevent this language selector from appearing.

It is a very simple plugin which is provided for ease of use: you need only to install and activate the plugin and it will prevent the language dropdown from appearing on the login screen of your site.

Alternatively, you can also achieve the same effect by adding the following line of code to the functions.php file in your theme:

add_filter( 'login_display_language_dropdown', '__return_false' );

螢幕截圖

  • This screen shot shows the language dropdown that will be hidden when this plugin is enabled.

安裝

  1. Upload the plugin package to the plugins directory of your site, or search for “Disable Login Language Selector” in the WordPress plugins directory from the Plugins section of your WordPress dashboard.
  2. Once uploaded or installed you must activate the plugin from the Plugins section of your WordPress dashboard.
  3. The language selector should no longer appear on the login screen of your site.

常見問題

What does this plugin do?

WordPress 5.9 added a new language selector to allow users to switch languages from a dropdown on the login screen if more than one language is enabled on your WordPress installation. This plugin provides a quick and easy way to prevent this language selector from appearing.

It is a very simple plugin which is provided for ease of use: you need only to install and activate the plugin and it will prevent the language dropdown from appearing on the login screen of your site.

Alternatively, you can also achieve the same effect by adding the following line of code to the functions.php file in your theme:

add_filter( 'login_display_language_dropdown', '__return_false' );

Why would I use this plugin?

If you have more than one language active on your website the language selector that was added in WordPress 5.9 will be visible on your login screen. If you don’t want this language selector to be visible then using this plugin will stop it from appearing.

There are several reasons why you may have more than one language active on your website but do not want the language selector to be visible to site users:

Perhaps you have a custom language selector in place already as part of an existing theme or plugin, so the WordPress language selector is not required.

Or perhaps as is common, WordPress was installed with the default language set as English (United States). In these cases enabling a subsequent language would result in there being more than one language active, for example English (United States) and English (UK), therefore enabling the language selector regardless of whether you want to have multiple language options available to site users.

I have installed the plugin but I still see the language selector

Check that the plugin has been correctly uploaded, installed and activated.

評價

Golden

impaled 2022年1月31日
Simple and effective. Thx

Works exactly as described!

Gary 2022年1月29日
I have tried adding the code to functions.php as you have mentioned, however everytime there is a theme update (default wordpress theme which I don’t use, I use a 3rd party theme) but language selector re-appeared, regardless of whether I use this theme or not! So I decided it is best to download this plugin so the language selector will stay deactivated! 🙂

Works Great

Web-Pepper 2022年1月27日 1 reply
Small and simple, big thank you!
閱讀全部3個評價

貢獻者及開發者

“Disable Login Language Selector” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者
  • Rick Curran

Disable Login Language Selector 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Disable Login Language Selector 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

修改日誌

1.0.1

  • No functional changes, this update simply modifies the short description in plugin file to match what is written in the readme file description

1.0

  • Initial plugin build.
  • Added PayPal donation link

其它

  • Version 1.0.1
  • Last updated 8 個月之前
  • Active installations 1,000+
  • WordPress version 5.9 or higher
  • Tested up to 6.6.2
  • PHP version 5.6 or higher
  • Languages

    English (US) 及 Romanian.

    翻譯成你的語言

  • Tags
    languageslogin
  • 進階顯示

評分

5 out of 5 stars.
  • 3 5-star reviews 5 stars 3
  • 0 4-star reviews 4 stars 0
  • 0 3-star reviews 3 stars 0
  • 0 2-star reviews 2 stars 0
  • 0 1-star reviews 1 star 0

Add my review

See all reviews

貢獻者

  • Rick Curran

支援

有話想說?需要協助?

檢視支援論壇

捐贈

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 寄存
  • 隱私權
  • 展示網站
  • 佈景主題
  • 外掛
  • 區塊版面配置
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Hong Kong 香港中文

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • 訪問我們的 Facebook 專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
代碼就是詩歌。