Disable the Block Editor Welcome Guide
Stops the "Welcome to the block editor" popup from appearing for new users.
Opens WPIDE on
Code
add_action( 'enqueue_block_editor_assets', function () {
$script = "wp.domReady(function(){var d=wp.data;if(d.dispatch('core/preferences')){d.dispatch('core/preferences').set('core/edit-post','welcomeGuide',false);}else if(d.select('core/edit-post')&&d.select('core/edit-post').isFeatureActive('welcomeGuide')){d.dispatch('core/edit-post').toggleFeature('welcomeGuide');}});";
wp_add_inline_script( 'wp-edit-post', $script );
} );
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.