[wordpress插件] Admin Menu Filter管理员菜单过滤器

wordpress 插件 文章 2020-02-03 18:40 694 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

Sometimes you may have a lot of admin menu items based on your WordPress installation, with this plugin you only need to type a few letters of the item name that you look and voila!

有时,根据您的WordPress安装,您可能会有很多管理菜单项,使用此插件,您只需要键入一些您要查找的项目名称字母即可,瞧!

Using a custom jQuery expression that extends the “contains” to a case insensitive the plugin add a class ‘filtered’ for non-match elements and perform actions based on 2 simple rules:

使用自定义jQuery表达式将“内容”扩展为不区分大小写的插件,插件为不匹配的元素添加“过滤”类,并根据2条简单规则执行操作:

1. For parent menu item matching the item keeps visible.

1.对于与父菜单项匹配的项,该项保持可见。

2. For child menu item matching the item keeps highlighted and their parent visible, keeping the rule #1 for the rest of parent menu items.

2.对于与子菜单项匹配的子菜单项,该选项将始终突出显示,并且其父项可见,从而使其余父菜单项的规则#1保持不变。

Credit for the expression:

该表达式的信用:

https://stackoverflow.com/questions/187537/is-there-a-case-insensitive-jquery-contains-selector/36392273

https://stackoverflow.com/questions/187537/is-there-a-case-insensitive-jquery-contains-selector/36392273

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/admin-menu-filter directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / admin-menu-filter 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

下载地址

https://downloads.wordpress.org/plugin/admin-menu-filter.zip

https://downloads.wordpress.org/plugin/admin-menu-filter.zip

-EOF-

AI助手支持GPT4.0