customize_nav_menu_searched_items WordPress Filter Hook
The 'customize_nav_menu_searched_items' hook is used to filter the list of available menu items to those matching the search query. This hook is used by the Menu Customizer to search for menu items when adding new items to a menu.
apply_filters( 'customize_nav_menu_searched_items', array $items , array $args ) #
Filters the available menu items during a search request.
Parameters
- $items
(array)The array of menu items.
- $args
(array)Includes 'pagenum' and 's' (search) arguments.
Source
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |