apply_filters( "nav_menu_items_{$post_type_name}", array $posts, array $args, WP_Post_Type $post_type )

Filters the posts displayed in the ‘View All’ tab of the current post type’s menu items meta box.


Description

The dynamic portion of the hook name, $post_type_name, refers to the slug of the current post type.

See also


Parameters

$posts

(array) The posts for the current post type.

$args

(array) An array of WP_Query arguments.

$post_type

(WP_Post_Type) The current post type object for this menu item meta box.


Source

File: wp-admin/includes/nav-menu.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.6.0 Converted the $post_type parameter to accept a WP_Post_Type object.
WP-3.2.0 Introduced.