Customizable Konami Code

Plugin Banner

Customizable Konami Code

by phalkmin

Download
Description

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.

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
Back to top