customize_nav_menu_available_items

过滤钩子


apply_filters( 'customize_nav_menu_available_items', $items, $object_type, $object_name, $page )
参数
  • (array)
    $items
    The array of menu items.
    Required:
  • (string)
    $object_type
    The object type.
    Required:
  • (string)
    $object_name
    The object name.
    Required:
  • (int)
    $page
    The current page number.
    Required:
定义位置
  • wp-includes/class-wp-customize-nav-menus.php
    , line 301
引入
4.3.0
弃用

Filters the available menu items.

$items = apply_filters( 'customize_nav_menu_available_items', $items, $object_type, $object_name, $page );