WordPress开发者和主题制作者的搜索引擎



customize_nav_menu_searched_items ›

Since4.5.0
已弃用n/a
apply_filters( 'customize_nav_menu_searched_items', $items, $args )
参数: (2)
  • (array) $items The array of menu items.
    Required: Yes
  • (array) $args Includes 'pagenum' and 's' (search) arguments.
    Required: Yes
定义在:
文档:

Filters the available menu items during a search request.





源码

$items = apply_filters( 'customize_nav_menu_searched_items', $items, $args );