Title: Customizable Konami Code
Author: phalkmin
Published: <strong>2009 年 5 月 23 日</strong>
Last modified: 2025 年 4 月 8 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/customizable-konami-code.svg)

# Customizable Konami Code

 作者：[phalkmin](https://profiles.wordpress.org/phalkmin/)

[下载](https://downloads.wordpress.org/plugin/customizable-konami-code.2.0.zip)

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

 [支持](https://wordpress.org/support/plugin/customizable-konami-code/)

## 描述

This plugin adds the classic Konami Code functionality to your WordPress site. When
users enter the Konami Code (Up, Up, Down, Down, Left, Right, Left, Right, B, A)
on your site, one of the following actions can happen:

 * Display a custom alert message
 * Redirect to a URL of your choice
 * Add a “bacon” overlay to your site (because why not?)

You can also customize the key sequence to trigger the action.

### Features

 * Easy setup through WordPress admin interface
 * Mobile support with touch gestures
 * Three different action types: alert message, page redirect, or “bacon” overlay
 * Customizable key sequence
 * Fully internationalized
 * Compatible with WordPress 5.0+ and PHP 7.4+/8.2+

### Credits

 * Original plugin by GraveHeart
 * Uses Konami-JS library by George Mandis

### License

This plugin is licensed under the GPL v2 or later.

## 安装

 1. Upload the `konami-code` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Configure the plugin settings under Settings > Konami Code

## 常见问题

### What is the Konami Code?

The Konami Code is a cheat code that appears in many Konami video games, and subsequently
in popular culture. The code is: Up, Up, Down, Down, Left, Right, Left, Right, B,
A.

### Can I customize the key sequence?

Yes! You can define your own custom key sequence in the plugin settings.

### Does this plugin slow down my site?

No, the plugin loads its JavaScript in the footer with minimal overhead.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Customizable Konami Code」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ phalkmin ](https://profiles.wordpress.org/phalkmin/)

[帮助将「Customizable Konami Code」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/customizable-konami-code)

### 对开发感兴趣吗?

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

## 更新日志

### 2.0

 * Major update with modern WordPress standards
 * Updated to work with PHP 7.4+/8.2+
 * Improved settings page using WordPress Settings API
 * Added proper internationalization support
 * Updated JavaScript library with touch support

### 1.0

 * Initial release by GraveHeart

## 额外信息

 *  版本 **2.0**
 *  最后更新：**1 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.7.6**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/customizable-konami-code/)
 * 标签
 * [blog](https://cn.wordpress.org/plugins/tags/blog/)[fun](https://cn.wordpress.org/plugins/tags/fun/)
   [konami](https://cn.wordpress.org/plugins/tags/konami/)
 *  [高级视图](https://cn.wordpress.org/plugins/customizable-konami-code/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/customizable-konami-code/reviews/#new-post)

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

## 贡献者

 *   [ phalkmin ](https://profiles.wordpress.org/phalkmin/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/customizable-konami-code/)