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().

Leave a reply

Your email address will not be published. Required fields are marked *