Stop the "Welcome to the editor" pop-up appearing for new users and on new browsers.
add_action( 'enqueue_block_editor_assets', function (): void {
wp_add_inline_script(
'wp-preferences',
"wp.domReady( function () { wp.data.dispatch( 'core/preferences' ).set( 'core/edit-post', 'welcomeGuide', false ); } );"
);
} );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
Every new user, and every user on a new browser, sees the “Welcome to the editor” guide. On a team where everyone knows the editor, it’s just a pop-up to close. This snippet turns it off.
The guide checks the welcomeGuide preference for the post editor. The snippet sets it to false through the core/preferences store as soon as the editor loads, so the guide never appears.
'core/edit-site', 'welcomeGuide'.Log in as a new user, or in a private window, and open the editor. No welcome pop-up should appear.