On this page
apply_filters( 'customize_nav_menu_available_items', array $items, string $object_type, string $object_name, int $page )
Filters the available menu items.
Parameters
$itemsarray-
The array of menu items.
$object_typestring-
The object type.
$object_namestring-
The object name.
$pageint-
The current page number.
Source
File: wp-includes/class-wp-customize-nav-menus.php. View all references
$items = apply_filters( 'customize_nav_menu_available_items', $items, $object_type, $object_name, $page );
Related
Used By
| Used By | Description |
|---|---|
| WP_Customize_Nav_Menus::load_available_items_query() wp-includes/class-wp-customize-nav-menus.php | Performs the post_type and taxonomy queries for loading available menu items. |
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/customize_nav_menu_available_items