Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: nav_menu_meta_box_object

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1176           $menus_meta_box_object = $items[ $_POST['item-object'] ];
1177           /**
1178            * Filter a nav menu meta box object.
1179            *
1180            * @since 3.0.0
1181            *
1182            * @param object $menus_meta_box_object A nav menu meta box object, such as Page,
1183            *                                      Post, Category, Tag, etc.
1184            */
1185           $item = apply_filters( 'nav_menu_meta_box_object', $menus_meta_box_object );
1186           ob_start();
1187           call_user_func_array($callback, array(
1188                null,
1189                array(
1190                     'id' => 'add-' . $item->name,
1191                     'title' => $item->labels->name,
1192                     'callback' => $callback,
1193                     'args' => $item,
1194                )