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. Possible hook names include: <ul> <li>nav_menu_items_post</li> <li>nav_menu_items_page</li> </ul>
Parameters
$postsobject[]
The posts for the current post type. Mostly WP_Post objects, but can also contain "fake" post objects to represent other menu items.
$argsarray
An array of WP_Query arguments.
$post_typeWP_Post_Type
The current post type object for this menu item meta box.
793*794* @param object[]$posts The posts for the current post type. Mostly `WP_Post` objects, but795* can also contain "fake" post objects to represent other menu items.796* @param array$args An array of `WP_Query` arguments.797* @param WP_Post_Type$post_type The current post type objectfor this menu item meta box.798*/799$posts=apply_filters(800"nav_menu_items_{$post_type_name}",801$posts,802$args,803$post_type804);805
History
Introduced in 3.2.0. Unchanged from 6.7.7 through 7.1.0.