nav_menu_meta_box_object WordPress Filter Hook

The nav_menu_meta_box_object hook is used to add custom fields to the navigation menu edit screen. This hook can be used to add custom fields to any menu item.

apply_filters( 'nav_menu_meta_box_object', WP_Post_Type|false $post_type ) #

Filters whether a menu items meta box will be added for the current object type.


Description

If a falsey value is returned instead of an object, the menu items meta box for the current meta box object will not be added.


Top ↑

Parameters

$post_type

(WP_Post_Type|false)The current object to add a menu items meta box for.


Top ↑

Source

File: wp-admin/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.