WordPress doesn’t store a last modified date for navigation menus, so I created the set of functions below for keeping track of when menus were last updated.
Whenever a menu is created or updated, a timestamp will be saved for it. You can then get the date modified timestamp for any menu using wds_get_menu_modified_timestamp( $menu_id )
.
Note that these functions keep track of last modified dates for WordPress menus themselves, not for the individual menu items inside. If you need the date modified for individual menu items, you can use get_the_modified_date()
.
Written by Kellen Mace, who lives in Rochester Hills, MI and builds cool stuff on the web. About Kellen // Follow him on Twitter →