nav_menu_items_{$post_type_name}_recent
最后更新于:2021-11-27 08:47:43
apply_filters( “nav_menu_items_{$post_type_name}_recent”, GC_Post[] $most_recent, array $args, array $box, array $recent_args )
Filters the posts displayed in the ‘Most Recent’ tab of the current post type’s menu items meta box.
参数
- $most_recent
-
(GC_Post[])
An array of post objects being listed. - $args
-
(array)
An array ofGC_Query
arguments for the meta box. - $box
-
(array)
Arguments passed togc_nav_menu_item_post_type_meta_box()
. - $recent_args
-
(array)
An array ofGC_Query
arguments for ‘Most Recent’ tab.
源文件
文件: gc-admin/includes/nav-menu.php