跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
  • 支持
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Disable Login Language Selector

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

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 回复
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

额外信息

  • 版本 1.0.1
  • 最后更新:3 周前
  • 活跃安装数量 1,000+
  • WordPress 版本 5.9 或更高版本
  • 已测试的最高版本为 6.9.1
  • PHP 版本 5.6 或更高版本
  • 语言

    English (US) 和 Romanian.

    翻译成简体中文

  • 标签
    languageslogin
  • 高级视图

评级

5 星(最高 5 星)。
  • 3 条 5 星评价 5 星 3
  • 0 条 4 星评价 4 星 0
  • 0 条 3 星评价 3 星 0
  • 0 条 2 星评价 2 星 0
  • 0 条 1 星评价 1 星 0

添加我的评价

查看全部评论

贡献者

  • Rick Curran

支持

有话要说吗?是否需要帮助?

查看支持论坛

捐助

您愿意支持这个插件的发展吗?

捐助此插件

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗