update_menu_item_cache
update_menu_item_cache ( $menu_items )
Parameters:- (WP_Post[]) menu_items Array of menu item post objects.
Defined at: - Introduced in WordPress: 6.1.0
- Deprecated in WordPress: —
Description
Updates post and term caches for all linked objects for a list of menu items.