WordPress at a glance
filter is not described

nav_menu_meta_box_object filter-hook . WP 3.0.0

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

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.

Usage

add_filter( 'nav_menu_meta_box_object', 'filter_function_name_7145' );
function filter_function_name_7145( $post_type ){
	// filter...

	return $post_type;
}
$post_type(WP_Post_Type/false)
The current object to add a menu items meta box for.

Список изменений

С версии 3.0.0 Введена.

Где вызывается хук

wp_nav_menu_post_type_meta_boxes()
nav_menu_meta_box_object
wp_nav_menu_taxonomy_meta_boxes()
nav_menu_meta_box_object
wp_ajax_menu_get_metabox()
nav_menu_meta_box_object
wp-admin/includes/nav-menu.php 230
$post_type = apply_filters( 'nav_menu_meta_box_object', $post_type );
wp-admin/includes/nav-menu.php 254
$tax = apply_filters( 'nav_menu_meta_box_object', $tax );
wp-admin/includes/ajax-actions.php 1816
$item = apply_filters( 'nav_menu_meta_box_object', $menus_meta_box_object );

Где используется хук в ядре WP

wp-includes/default-filters.php 261
add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' );