nav_menu_items_{$post_type_name}
最后更新于:2021-11-27 08:47:33
apply_filters( “nav_menu_items_{$post_type_name}”, object[] $posts, array $args, GC_Post_Type $post_type )
Filters the posts displayed in the ‘View All’ tab of the current post type’s menu items meta box.
参数
- $posts
-
(object[])
The posts for the current post type. MostlyGC_Post
objects, but can also contain “fake” post objects to represent other menu items. - $args
-
(array)
An array ofGC_Query
arguments. - $post_type
-
(GC_Post_Type)
The current post type object for this menu item meta box.
源文件
文件: gc-admin/includes/nav-menu.php