-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Status] Needs More InfoFollow-up required in order to be actionable.Follow-up required in order to be actionable.
Description
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.
Metadata
Metadata
Assignees
Labels
[Status] Needs More InfoFollow-up required in order to be actionable.Follow-up required in order to be actionable.