No data loss
Variation edits persist on Update. No extra clicks, no lost work.
Free · Open source · GPL-3.0
Gutenberg For WC Products enables the WordPress block editor for products and adds an extensible saver framework so third-party data persists when you hit Update. Its bundled adapter fixes WooCommerce variation saving.
The problem
When the block editor is enabled for products, pressing Update saves over REST. WooCommerce variation edits are lost unless you click the variations panel's own Save button first — a silent data loss WooCommerce has chosen not to fix (issue #35242). Any plugin whose save is tied to the classic form submit breaks too, because that event no longer exists.
The solution
Variation edits persist on Update. No extra clicks, no lost work.
Any plugin registers its own saver through a public API. The WooCommerce variations fix is just the bundled reference adapter.
Uses only WordPress APIs stable since 5.0. Validated on WordPress 7.0 and WooCommerce 10.8.1.
How it works
The saving → saved transition is watched; autosaves are ignored.
On each save, every registered saver acts only when its own rows are dirty.
The bundled adapter clicks WooCommerce's own Save variations button, firing WooCommerce's own AJAX with its nonce and capability checks. No fields serialized by hand, no new REST endpoints.
For developers
Register your own saver through the public API on window.gfwcp. Declarative: when these rows are dirty, click this button.
window.gfwcp.registerSaver( {
id: 'my-plugin/my-panel',
dirtySelector: '#my_panel .my-row.needs-update',
buttonSelector: 'button.my-plugin-save'
} );
Requirements
Only long-stable APIs, so it is not tied to a recent WordPress release.
Nonprofit program
José donates his premium plugins — with lifetime support — to legally registered nonprofits, worldwide.