Used By
Used By | Description |
---|---|
wp-admin/includes/nav-menu.php: wp_nav_menu_item_post_type_meta_box() | Displays a meta box for a post type menu item. |
Filters the posts displayed in the ‘View All’ tab of the current post type’s menu items meta box.
The dynamic portion of the hook name, $post_type_name
, refers to the slug of the current post type.
(object[]) The posts for the current post type. Mostly WP_Post
objects, but can also contain "fake" post objects to represent other menu items.
(array) An array of WP_Query
arguments.
(WP_Post_Type) The current post type object for this menu item meta box.
Version | Description |
---|---|
4.6.0 | Converted the $post_type parameter to accept a WP_Post_Type object. |
3.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/nav_menu_items_post_type_name