Display notice in block editor after wp_insert_post_data hook
what I cannot understand is how to call the javascript function (file already enqueued in admin) after the validation from wp_insert_post_data You can use the same approach that Gutenberg uses for saving meta boxes (or custom fields), which you can find here on GitHub. It basically uses wp.data.subscribe() to listen to changes in the editor’s … Read more