Disable the Command Palette in wp-admin
Turns off the Ctrl+K / Cmd+K command palette on regular admin screens.
Opens WPIDE on
Code
add_action( 'admin_init', function () {
remove_action( 'admin_enqueue_scripts', 'wp_enqueue_command_palette_assets' );
} );
Notes
The block editor and Site Editor keep their own command menu.
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.