RiProV2美化-去除后台登录多语言

功能介绍

WordPress更新V6版本之后后台就会多出一个选择语言登录,大部分人感觉用不到这个的话可以参考以下代码给他隐藏!

配置教程

首先利用宝塔或则FTP打开/inc/options下的admin-options.php文件把下面代码放在20行左右

array(
'id' => 'is_delete_admin_login_language',
'type' => 'switcher',
'title' => '去除后台登录多语言',
'label' => '启用后会去除后台登录多语言功能',
'default' => false,
),

最后在主题根目录下打开functions.php将以下代码放在最后即可

//+----------------------------------------------------------------------
//| 去除后台登录页多语言
//+----------------------------------------------------------------------
if(_cao('is_delete_admin_login_language')){
add_filter( 'login_display_language_dropdown', '__return_false' ); 
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
日主题系列

RiProV2美化-自动添加标签

2022-10-22 2:34:30

日主题系列

RiProV2美化-禁止文章修订版本

2022-10-22 2:43:34

6 条回复 A文章作者 M管理员
  1. Wow, superb blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is magnificent, as well as the content!

  2. Thank you, I have just been searching for information approximately this topic for a while and yours is the best I have found out so far. However, what in regards to the bottom line? Are you certain concerning the supply?

  3. I loved as much as you will receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get got an edginess over that you wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly very often inside case you shield this hike.

  4. I simply could not go away your web site prior to suggesting that I really enjoyed the standard info a person supply on your guests? Is going to be back incessantly to investigate cross-check new posts.

  5. Hi, i think that i saw you visited my web site thus i came to ?eturn the favor텶 am attempting to find things to improve my web site!I suppose its ok to use some of your ideas!!

  6. Magnificent beat ! I would like to apprentice while you amend your site, how can i subscribe for a blog web site? The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea

个人中心
今日签到
有新私信 私信列表
搜索
赣ICP备2021010644号-1