Admin Menu Filter

Descrição

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 you’re looking for and voila! The plugin uses plain JavaScript (no jQuery) to filter menu items with case-insensitive matching.

Features:

  • Instant filtering – Debounced search, so typing stays smooth even with long menus
  • Keyboard shortcuts – Press / to focus the search box (when you are not typing in a field), Escape to clear it
  • Matching children are reachable – Submenus of the matching items are expanded, no hovering needed
  • Accessible – The box is a labelled search landmark and the number of results is announced to screen readers
  • No jQuery dependency

How it works:

The plugin adds a search input at the top of the admin menu and follows these filtering rules:

  1. If a top-level item matches, it stays visible together with all of its submenu items.
  2. If only some submenu items match, those items stay visible (highlighted) under their parent, and the rest are hidden.
  3. Notification badges and screen reader text are ignored, only the visible name of each item is searched.

Capturas de tela

Instalação

  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. Activate the plugin through the ‘Plugins’ screen in WordPress

Perguntas frequentes

How do I focus the search box with the keyboard?

Press / anywhere in the admin, as long as you are not typing in a field. Press Escape inside the box to clear the filter. Ctrl/Cmd + F is not used anymore, so your browser’s find in page keeps working.

How about mobile devices?

Could be added support on future versions. Currently it’s thinking for desktop users. The search box is hidden when the admin menu is folded.

Avaliações

Não há avaliações para este plugin.

Colaboradores e desenvolvedores

“Admin Menu Filter” é um programa de código aberto. As seguintes pessoas contribuíram para este plugin.

Colaboradores

Registro de alterações

0.3.1

  • Fix: the menu was permanently tinted blue, now only the items that match the search are highlighted
  • Fix: Ctrl/Cmd + F no longer hijacked on every admin page, use / to focus the search box instead
  • Fix: apostrophes in translated placeholders were shown as HTML entities
  • A matching parent now keeps all of its submenu items, and matching submenus are expanded while filtering
  • Menu separators are hidden while filtering, notification badges are ignored when matching
  • Script and styles are now regular enqueued files (compatible with strict Content Security Policies) and are not loaded in iframes
  • Search input is now type="search" inside a search landmark, and results are announced to screen readers
  • Search box is hidden, and the filter reset, when the menu is folded
  • Translatable strings now use a literal text domain
  • Complete plugin headers, description typo fixed

0.3

  • Complete rewrite: Remove jQuery dependency, vanilla JS implementation
  • Add keyboard shortcuts (Ctrl/Cmd + F to focus, Escape to clear)
  • Implement debounced search for better performance (150ms delay)
  • Modern CSS with focus states and smooth transitions

0.2.7

  • Optimize description, update styles

0.2.6

  • Fix tagging and update WP 6.8.2 compat

0.2.5

  • Improve Plugin Tagging

0.2.4

  • WP 6.7.2 compat

0.2.3

  • WP 6.1 compat

0.2.2

  • Improve script init

0.2.1

  • Remove Doc Ready wrapper

0.2

  • Check compatibility WP 5.6

0.1

  • First release