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
1690           $type     = 'taxonomy';
1691           $callback = 'wp_nav_menu_item_taxonomy_meta_box';
1692           $items    = (array) get_taxonomies( array( 'show_ui' => true ), 'object' );
1693      }
1694
1695      if ( ! empty( $_POST['item-object'] ) && isset( $items[ $_POST['item-object'] ] ) ) {
1696           $menus_meta_box_object = $items[ $_POST['item-object'] ];
1697
1698           /** This filter is documented in wp-admin/includes/nav-menu.php */
1699           $item = apply_filters( 'nav_menu_meta_box_object', $menus_meta_box_object );
1700           ob_start();
1701           call_user_func_array(
1702                $callback,
1703                array(
1704                     null,
1705                     array(
1706                          'id'       => 'add-' . $item->name,
1707                          'title'    => $item->labels->name,
1708                          'callback' => $callback,