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.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Each array item now includes a $type_label in addition to $title, $type, and $object.
4.3.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.