WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
1700 | $type = 'taxonomy'; |
1701 | $callback = 'wp_nav_menu_item_taxonomy_meta_box'; |
1702 | $items = (array) get_taxonomies( array( 'show_ui' => true ), 'object' ); |
1703 | } |
1704 |
|
1705 | if ( ! empty( $_POST['item-object'] ) && isset( $items[ $_POST['item-object'] ] ) ) { |
1706 | $menus_meta_box_object = $items[ $_POST['item-object'] ]; |
1707 |
|
1708 | /** This filter is documented in wp-admin/includes/nav-menu.php */ |
1709 | $item = apply_filters( 'nav_menu_meta_box_object', $menus_meta_box_object ); |
1710 | ob_start(); |
1711 | call_user_func_array( |
1712 | $callback, |
1713 | array( |
1714 | null, |
1715 | array( |
1716 | 'id' => 'add-' . $item->name, |
1717 | 'title' => $item->labels->name, |
1718 | 'callback' => $callback, |