# 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.

- Type: PHP
- Runs: Admin only
- Category: [Block Editor](https://wpide.com/library/category/gutenberg/)
- Tags: editor, publishing, preferences
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/skip-pre-publish-checks/

## Code

```php
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 use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Skip the Pre-Publish Checks Panel by Default" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
