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.


Top ↑

Source

File: wp-includes/class-wp-customize-nav-menus.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.