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 all references

$post_type = apply_filters( 'nav_menu_meta_box_object', $post_type );


Top ↑

Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes

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