Customizable Konami Code
Customizable Konami Code
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.
Installation
- Upload the
konami-codefolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Configure the plugin settings under Settings > Konami Code
Faq
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.
Yes! You can define your own custom key sequence in the plugin settings.
No, the plugin loads its JavaScript in the footer with minimal overhead.
Reviews
Changelog
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