apply_filters( ‘customize_nav_menu_available_item_types’, array $item_types )

In this article

Filters the available menu item types.

Parameters

$item_typesarray
Navigation menu item types.

Source

$item_types = apply_filters( 'customize_nav_menu_available_item_types', $item_types );

Changelog

VersionDescription
4.7.0Each array item now includes a $type_label in addition to $title, $type, and $object.
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.