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 |
---|---|
405 | * |
406 | * The dynamic portion of the hook name, `$post_type_name`, refers to the post type name. |
407 | * |
408 | * @since 4.3.0 |
409 | * |
410 | * @param array $most_recent An array of post objects being listed. |
411 | * @param array $args An array of WP_Query arguments. |
412 | * @param object $post_type The current post type object for this menu item meta box. |
413 | */ |
414 | $most_recent = apply_filters( "nav_menu_items_{$post_type_name}_recent", $most_recent, $args, $post_type ); |
415 |
|
416 | echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $most_recent), 0, (object) $args ); |
417 | ?> |
418 | </ul> |
419 | </div><!-- /.tabs-panel --> |
420 |
|
421 | <div class="tabs-panel <?php |
422 | echo ( 'search' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); |
423 | ?>" id="tabs-panel-posttype-<?php echo $post_type_name; ?>-search"> |