Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/flexseth/hide-autosave-alert/archive/refs/heads/main.zipTodo
Rework plugin for simplicity and granularity
- [ ] Use
phpto hide, in lieu of JavaScript - [ ] Keep JavaScript as a branch for demonstration purposes
- [ ] Add options screen - disable sitewide, disable for block name, stub
- [ ] Disable if there's only one custom block
[!WARNING] Do not use in production.
Hide Autosave Alert
A very simple WordPress plugin that automatically removes the
"There is an autosave of this post that is more recent than the version below."
message from the block editor.
Helpful for improving development workflow, if you don't care about autosaves.
Use cases
When working on a custom Gutenberg block, it's on the page. But every time you reload to see changes to code in the browser, it thinks there is an autosave.
Instead of having to press enter, delete the paragraph, and save... just use this plugin to hide the autosave message.
Caveats
Not recommended for production usage.
✨ Features
- Hides the autosave alert in the Gutenberg editor
- Keeps autosave functionality intact
- Lightweight: no settings, no configuration needed
📦 Installation
- Download or clone this repository.
- Add
.zipfile via the Plugins installation screen in the dashboard - OR unzip folder, move
hide-autosave-alertdirectory to yourpluginsfolder.