customize_nav_menu_available_item_types WordPress Filter Hook
The customize_nav_menu_available_item_types hook allows you to add new item types to the available menu items in the Customizer. This is useful if you want to add custom menu items to your theme.
apply_filters( 'customize_nav_menu_available_item_types', array $item_types ) #
Filters the available menu item types.
Parameters
- $item_types
(array)Navigation menu item types.
Source
Changelog
Version | Description |
---|---|
4.7.0 | Each array item now includes a $type_label in addition to $title , $type , and $object . |
4.3.0 | Introduced. |