Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
Title: Disable Gutenberg fullscreen mode
Type: JavaScript > Custom Code
Location: Custom Hooks
Hook name: enqueue_block_editor_assets
Priority: 10
*/
window.addEventListener('load', function() {
if (wp.data.select('core/edit-post').isFeatureActive('fullscreenMode')) {
wp.data.dispatch('core/edit-post').toggleFeature('fullscreenMode');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment