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 |
---|---|
743 | 'post_parent' => '', |
744 | 'post_title' => _x('Home', 'nav menu home label'), |
745 | 'post_type' => 'nav_menu_item', |
746 | 'type' => 'custom', |
747 | 'url' => home_url('/'), |
748 | ) ); |
749 | } |
750 | } |
751 |
|
752 | $posts = apply_filters( 'nav_menu_items_'.$post_type_name, $posts, $args, $post_type ); |
753 | $checkbox_items = walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $posts), 0, (object) $args ); |
754 |
|
755 | if ( 'all' == $current_tab && ! empty( $_REQUEST['selectall'] ) ) { |
756 | $checkbox_items = preg_replace('/(type=(.)checkbox(\2))/', '$1 checked=$2checked$2', $checkbox_items); |
757 |
|
758 | } |
759 |
|
760 | echo $checkbox_items; |
761 | ?> |