Filters the posts displayed in the ‘Most Recent’ 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 post type name.
Possible hook names include:
nav_menu_items_post_recentnav_menu_items_page_recent
Parameters
$most_recentWP_Post[]- An array of post objects being listed.
$argsarray- An array of
WP_Queryarguments for the meta box. $boxarray- Arguments passed to
wp_nav_menu_item_post_type_meta_box(). $recent_argsarray- An array of
WP_Queryarguments for ‘Most Recent’ tab.
Source
$most_recent = apply_filters(
"nav_menu_items_{$post_type_name}_recent",
$most_recent,
$args,
$box,
$recent_args
);
User Contributed Notes
You must log in before being able to contribute a note or feedback.