
內容簡介
WordPress 5.9 新增了一個語言選擇器,讓用戶可以從下拉式選單切換不同的語言,如果在 WordPress 安裝程序中啟用了多種語言。這個外掛提供了一種快速簡便的方法,以防止語言選擇器出現。
這是一個非常簡單的外掛,只需安裝和啟用外掛,它就能夠在您的網站登錄頁面上避免語言下拉式選單出現。
或者,您也可以通過在主題的 functions.php 檔案中添加以下代碼來實現相同效果:
add_filter( 'login_display_language_dropdown', '__return_false' );
外掛標籤
開發者團隊
② 後台搜尋「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' );
