Skip to content

Early-bird lifetime licence: $199 once, for the first 200 buyers only. See the offer

Open the block editor with the admin menu

The block editor stops opening in fullscreen mode, so the WordPress menu stays visible. Anyone who switches fullscreen back on from the editor’s Options menu keeps their choice.

  • Type PHP
  • Runs Everywhere (runs as WordPress loads)
  • Category Posts and editor
  • Tested with WordPress 7.1
PHP
<?php

add_action(
	'enqueue_block_editor_assets',
	static function () {
		// Changes the default only: a choice the user made in the editor still wins.
		wp_add_inline_script(
			'wp-edit-post',
			"window.addEventListener( 'load', function () {
				wp.data.dispatch( 'core/preferences' ).setDefaults( 'core/edit-post', { fullscreenMode: false } );
			} );"
		);
	}
);

In these packs

Move your snippets over this afternoon.

Importing changes nothing until you switch over, and your old shortcodes keep working.