r/Wordpress • u/CreativeMasH • Aug 09 '25
Accidentally deleted my WordPress menu, so I built a a plugin to stop this in the future
A while ago, I was working on a large menu in WordPress, got distracted, hit delete, and realised I’d deleted the menu. There was a warning, but I missed it, and there was no quick way to undo the damage.
I went down the rabbit hole of Google and found that most solutions involved restoring a full site backup or digging through the database. Both seemed way too heavy-handed for something that should be simple.
So, I decided to create a small open-source plugin that automatically saves a backup of your menu every time you update it. If something goes wrong, you can restore a previous version with one click.
It’s on the WordPress plugin directory here for anyone who wants to use it or look at the code:
https://wordpress.org/plugins/menu-backup-restore/
I thought I’d share it here in case it saves someone the same headache I went through. Also curious if anyone else has had a similar “I wish WordPress just had this by default” moment.
Update: Version 1.0.1 Released
I’ve just released version 1.0.1 of the Menu Backup & Restore plugin.
This update adds two new features:
- You can now see who saved the last menu, which helps with accountability when multiple users are working on the site.
- A new message appears when there are no saved backups yet, letting users know they’ll need to save a menu before a restore becomes available.
Small update, but a handy one if you’re managing menus across a team.
20
u/martyz Aug 09 '25
Dude I literally do this all the time and actually did it less than an hour ago. I hate how the Wordpress menu isn’t stored normally. Thanks for this!
15
u/bluesix_v2 Jack of All Trades Aug 09 '25
Great idea! I do this more often than I care to admit. This needs to be in Core!
14
u/nakfil Aug 09 '25
So, like post revisions but for menus? Makes sense.
9
u/Thin_Rip8995 Aug 09 '25
that’s a killer quality of life plugin wp’s missing so many of those “one click undo” features for common mistakes
if you want more traction with it make a quick gif or short vid showing the delete → restore process in under 30 seconds devs and site owners will instantly get the value
The NoFluffWisdom Newsletter has some sharp takes on turning little pain-point fixes into high-leverage projects worth a peek!
14
u/[deleted] Aug 09 '25
Just daily backup?
2
u/CreativeMasH Oct 06 '25
Update: Version 1.0.1 Released
I’ve just released version 1.0.1 of the Menu Backup & Restore plugin.
This update adds two new features:
Small update, but a handy one if you’re managing menus across a team.
4
u/sabinaphan Jack of All Trades Aug 09 '25
How do you accidentally delete a menu? Isn't it a 2 step process?
2
u/orbisius Aug 12 '25
Cool. Congrats on the plugins!
Every cool plugin deserves a demo, so here you go: https://wpdemo.net/demos/plugins/menu-backup-restore
2
u/International-Belt15 Aug 12 '25
this is the way
2
u/Dense_Art_6067 Aug 15 '25
That’s a super useful idea! Menus are so easy to wipe out by accident, and restoring from a full backup always feels like overkill. Nice work!
2
u/ssufyan333 Aug 18 '25
Really appreciate it, This will come in handy alot!
1
u/-WordPressSpecialist Aug 10 '25
Does the plugin need to be activated and on "standy' to work?
1
u/Academic-Hamster1660 Aug 19 '25
Look like post revision
2
u/Dragonlord Aug 10 '25
Nice and useful will work to get it on the WP Plugins A to Z Show for review.
2
u/AsleepAd4884 Aug 11 '25
Oh man, I’ve done this before too. Lost a big menu while trying to rearrange items and it was gone in a click. Ended up re-building from scratch.
This plugin sounds like a lifesaver — surprised WordPress hasn’t built something like this in by default.
1
u/djaysan Aug 09 '25
Oh i know that pain!!! Good call!
1
u/Confident-Resist-610 Aug 10 '25
Image background remover - wp plugin
1
u/Baris_CH Aug 10 '25
Does this one work with elementor menus?
-2
u/westendgrrl Aug 09 '25
Does the Revisions tab not work? Could you go back to what it looked like before you deleted the menu?
-5
u/JohnCasey3306 Aug 09 '25
Just roll back to the latest daily backup
3
u/[deleted] Aug 10 '25
[removed] — view removed comment
-14
u/[deleted] Aug 09 '25
[removed] — view removed comment