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.


Top ↑

Source

File: wp-includes/nav-menu.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.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.