Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/nav-menu.php | apply_filters | 560 | /** * Filters the posts displayed in the 'Most Recent' tab of the current * post type's menu items meta box. * * The dynamic portion of the hook name, `$post_type_name`, refers to the post type name. * * Possible hook names include: * * - `nav_menu_items_post_recent` * - `nav_menu_items_page_recent` * * @since 4.3.0 * @since 4.9.0 Added the `$recent_args` parameter. * * @param WP_Post[] $most_recent An array of post objects being listed. * @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. */ |
wp-admin/includes/nav-menu.php | apply_filters | 655 | /** * 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. * * Possible hook names include: * * - `nav_menu_items_post` * - `nav_menu_items_page` * * @since 3.2.0 * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object. * * @see WP_Query::query() * * @param object[] $posts The posts for the current post type. Mostly `WP_Post` objects, but * can also contain "fake" post objects to represent other menu items. * @param array $args An array of `WP_Query` arguments. * @param WP_Post_Type $post_type The current post type object for this menu item meta box. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
WP_Post[] | $most_recent | An array of post objects being listed. |
array | $args | An array of `WP_Query` arguments for the meta box. |
array | $box | Arguments passed to `wp_nav_menu_item_post_type_meta_box()`. |
array | $recent_args | An array of `WP_Query` arguments for 'Most Recent' tab. |
WP_Post[] | $most_recent | An array of post objects being listed. |
array | $args | An array of `WP_Query` arguments for the meta box. |
array | $box | Arguments passed to `wp_nav_menu_item_post_type_meta_box()`. |
array | $recent_args | An array of `WP_Query` arguments for 'Most Recent' tab. |