Title: Disable Commands &#8211; Custom Key Binding in Command Palette
Author: Kakon Barman
Published: <strong>2026 年 1 月 20 日</strong>
Last modified: 2026 年 1 月 20 日

---

搜索插件

![](https://ps.w.org/disable-commands/assets/banner-772x250.jpg?rev=3443356)

![](https://ps.w.org/disable-commands/assets/icon-256x256.jpg?rev=3443356)

# Disable Commands – Custom Key Binding in Command Palette

 作者：[Kakon Barman](https://profiles.wordpress.org/kakon4366/)

[下载](https://downloads.wordpress.org/plugin/disable-commands.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/disable-commands/#description)
 * [评价](https://cn.wordpress.org/plugins/disable-commands/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/disable-commands/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/disable-commands/#developers)

 [支持](https://wordpress.org/support/plugin/disable-commands/)

## 描述

Disable Commands – Custom Key Binding gives you full control over the WordPress 
Command Palette (introduced in WordPress 6.9).

This plugin is essential if you need to:
 * Resolve keyboard shortcut conflicts 
with other software or browser extensions. * Simplify the admin interface for yourself
or your clients. * Prevent the accidental triggering of the command palette. * Customize
the default shortcut to better fit your personal workflow.

**Features include:**
 1. **Disable Command Palette:** A simple toggle to completely
disable the `wp-commands` script. 2. **Custom Key Binding:** Remap the command palette
shortcut to any combination of modifier keys (Ctrl/Cmd, Alt, Shift) and a single
letter, number, or punctuation key. For example, use `Ctrl + Shift + P` instead 
of the default `Ctrl/Cmd + K`.

All settings are managed from a single, user-friendly page in the WordPress admin.

### Configuration

On the plugin’s settings page, you will find two main sections:

**1. Disable Command Palette**
 * **Option:** Check this box to disable the WordPress
admin command palette (Cmd+K / Ctrl+K).

**2. Custom Key Binding**
 * **Override Default Shortcut:** Check this box to activate
the custom shortcut feature. * **Shortcut Combination:** Use the checkboxes to select
your desired modifier keys (Ctrl, Shift, Alt, Cmd/Meta) and the input field to define
a single character key (e.g., ‘k’, ‘p’, ‘/’). The default combination is Ctrl/Cmd
+ K.

## 屏幕截图

[⌊The main settings page.


The "Disable Command Palette" toggle.⌉⌊The main settings
page.


The "Disable Command Palette" toggle.⌉[

The main settings page.

 * The “Disable Command Palette” toggle.

## 安装

 1. Search WordPress org and Upload the plugin files to the `/wp-content/plugins` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Navigate to **Settings > Disable Commands** to configure the plugin options.

## 常见问题

### Does this plugin disable the Command Palette in the Site Editor?

Currently, this plugin primarily targets the admin command palette script (`wp-commands`)
in the WordPress dashboard.

### Can I re-enable the palette after disabling it?

Yes. Simply uncheck the “Disable Command Palette” option on the settings page and
save your changes.

### Can I use multiple modifier keys for my custom shortcut?

Yes. You can select any combination of the available modifier keys (Ctrl, Cmd/Meta,
Alt, Shift) along with a single character key.

### What happens if I define a shortcut that’s already in use by my browser?

The plugin will assign the shortcut within WordPress, but browser shortcuts typically
take priority. It is recommended to choose a combination not heavily used by your
browser to avoid conflicts.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Disable Commands – Custom Key Binding in Command Palette」是开源软件。 以下人员
对此插件做出了贡献。

贡献者

 *   [ Kakon Barman ](https://profiles.wordpress.org/kakon4366/)

[帮助将「Disable Commands – Custom Key Binding in Command Palette」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/disable-commands)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/disable-commands/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/disable-commands/)，或通过[RSS](https://plugins.trac.wordpress.org/log/disable-commands/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/disable-commands/)。

## 更新日志

#### 1.0.0

 * Initial release with core functionality:
    - Ability to completely disable the command palette.
    - Full custom key binding support to remap the shortcut.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**5 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.9 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/disable-commands/)
 * 标签
 * [command palette](https://cn.wordpress.org/plugins/tags/command-palette/)[commands](https://cn.wordpress.org/plugins/tags/commands/)
   [shortcuts](https://cn.wordpress.org/plugins/tags/shortcuts/)
 *  [高级视图](https://cn.wordpress.org/plugins/disable-commands/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/disable-commands/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/disable-commands/reviews/)

## 贡献者

 *   [ Kakon Barman ](https://profiles.wordpress.org/kakon4366/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/disable-commands/)