Seth Shoultes

WordPress Memory Game Plugin

A feature-rich memory card matching game plugin for WordPress with customizable settings, multiple themes, and high score tracking.

Features

Installation

  1. Download the plugin zip file
  2. Go to WordPress admin panel โ†’ Plugins โ†’ Add New
  3. Click โ€œUpload Pluginโ€ and choose the downloaded zip file
  4. Click โ€œInstall Nowโ€ and then โ€œActivateโ€

Usage

Creating a Memory Game

  1. In WordPress admin, go to Memory Games โ†’ Add New
  2. Set a title for your game
  3. Configure game settings:
    • Timer type (countdown/count-up)
    • Timer value (10-300 seconds)
    • Grid size (4x4, 4x5, 5x6)
    • Card flip duration
    • Match delay
    • Theme selection
  4. Upload at least 8 card images (each image will be used to create a matching pair)
  5. Optionally add names for each card
  6. Publish your game

Adding the Game to Your Site

You can add the game to your site in two ways:

  1. Automatic Display: The game will automatically appear below the content on its dedicated game page.

  2. Using Shortcode: Add the game anywhere using the shortcode:

    [memory_game id="123"]
    

    Replace โ€œ123โ€ with your gameโ€™s post ID.

Game Settings

Timer Options

Grid Sizes

Animation Settings

Themes

Customization

CSS Classes

The plugin uses the following main CSS classes for styling:

Theme Classes

Add custom themes by targeting:

.wp-memory-game-container.theme-your-theme-name {
    /* Your theme styles */
}

Development

File Structure

wp-memory-game/
โ”œโ”€โ”€ css/
โ”‚   โ”œโ”€โ”€ style.css
โ”‚   โ””โ”€โ”€ themes.css
โ”œโ”€โ”€ js/
โ”‚   โ””โ”€โ”€ game.js
โ”œโ”€โ”€ languages/
โ”œโ”€โ”€ wp-memory-game.php
โ””โ”€โ”€ README.md

Filters and Actions

The plugin provides hooks for extending functionality:

// Modify game settings before save
add_filter('wp_memory_game_settings', function($settings) {
    // Modify settings
    return $settings;
});

// Custom initialization
add_action('wp_memory_game_init', function() {
    // Your initialization code
});

Requirements

License

This plugin is licensed under the GPL v2 or later.

Support

For bug reports and feature requests, please use the GitHub issues page or contact the plugin author.

Changelog

1.0.0