[WordPress] 外掛分享: Disable Login Language Selector

首頁外掛目錄 › Disable Login Language Selector
WordPress 外掛 Disable Login Language Selector 的封面圖片
1,000+
安裝啟用
★★★★★
5/5 分(3 則評價)
47 天前
最後更新
問題解決
WordPress 5.9+ PHP 5.6+ v1.0.1 上架:2022-01-24

內容簡介

WordPress 5.9 新增了一個語言選擇器,讓用戶可以從下拉式選單切換不同的語言,如果在 WordPress 安裝程序中啟用了多種語言。這個外掛提供了一種快速簡便的方法,以防止語言選擇器出現。

這是一個非常簡單的外掛,只需安裝和啟用外掛,它就能夠在您的網站登錄頁面上避免語言下拉式選單出現。

或者,您也可以通過在主題的 functions.php 檔案中添加以下代碼來實現相同效果:

add_filter( 'login_display_language_dropdown', '__return_false' );

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Disable Login Language Selector」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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' );

延伸相關外掛

文章
Filter
Apply Filters
Mastodon