Skip the Pre-Publish Checks Panel by Default
Publishes posts with a single click instead of opening the "Are you ready to publish?" panel first. Each user can still switch the panel back on in the editor preferences.
Opens WPIDE on
Code
add_action( 'enqueue_block_editor_assets', function () {
wp_add_inline_script(
'wp-preferences',
'wp.domReady(function(){(window._wpLoadBlockEditor||Promise.resolve()).then(function(){wp.data.dispatch("core/preferences").setDefaults("core",{isPublishSidebarEnabled:false});});});'
);
} );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.