Closed bfintal closed 4 years ago
Since saving is disabled anyway, it might be a good idea to force-remove the changes-not-saved prompt.
Was able to achieve this with:
window.wp.data.select( 'core/editor' ).isEditedPostDirty = function() { return false; }
ooo that looks handy :D
Since saving is disabled anyway, it might be a good idea to force-remove the changes-not-saved prompt.
Was able to achieve this with: