wp_setup_nav_menu_item WordPress Filter Hook
This hook is called when a new menu item is created. It allows for customizations to be made to the menu item before it is added to the menu.
apply_filters( 'wp_setup_nav_menu_item', object $menu_item ) #
Filters a navigation menu item object.
Parameters
- $menu_item
(object)The menu item object.
Source
File: wp-includes/nav-menu.php
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |