nav_menu_items_{$post_type_name}_recent

nav_menu_items_{$post_type_name}_recent

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.2.2

apply_filters('nav_menu_items_{$post_type_name}_recent') is found 1 times:

  • /wp-admin/includes/nav-menu.php line 561
    				 * @param array     $args        An array of `WP_Query` arguments for the meta box.
    				 * @param array     $box         Arguments passed to `wp_nav_menu_item_post_type_meta_box()`.
    				 * @param array     $recent_args An array of `WP_Query` arguments for 'Most Recent' tab.
    				 */
    				$most_recent = apply_filters( "nav_menu_items_{$post_type_name}_recent", $most_recent, $args, $box, $recent_args );
    
    				echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', $most_recent ), 0, (object) $args );
    				?>
    			</ul>
    		</div><!-- /.tabs-panel -->