Turn Off the Starter Patterns Window for New Pages
Stops the "Choose a pattern" window from popping up every time someone creates a new page. Users can switch it 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",{enableChoosePatternModal: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.