You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't find any information on how to submit notices to Gutenberg. Would anyone be willing to share some insight? :) The code I'm working with so far is:
var editPost = wp.data.select( 'core/edit-post' ), lastIsSaving = false;
wp.data.subscribe( function() {
var isSaving = editPost.isSavingMetaBoxes();
if ( isSaving !== lastIsSaving && !isSaving ) {
lastIsSaving = isSaving;
// TODO: ajax call to get metabox HTML
// TODO: refresh the metabox container
// TODO: ajax call to get the notices array
// TODO: submit notices to Gutenberg for display
}
lastIsSaving = isSaving;
} );
Thanks, :)
js.
The text was updated successfully, but these errors were encountered:
I must perform an ajax call to update a metabox after a post is updated by Gutenberg. This metabox displays status info and gathers information from a variety of locations / sources. Some info may be missing or incorrect, which generates notices (error, warning, or info types). So, after getting the metabox HTML, updating the metabox container, I need to retrieve any notices and pass them to Gutenberg for display. There is no information, that I could find, on how I might do this. :)
I can't find any information on how to submit notices to Gutenberg. Would anyone be willing to share some insight? :) The code I'm working with so far is:
Thanks, :)
js.
The text was updated successfully, but these errors were encountered: