🎰 SlotWP - Casino Plugin for WordPress

This documentation will guide you through the setup, usage, and support for SlotWP – a professional HTML5 casino game uploader and user credit manager plugin.

1. Introduction

SlotWP is a custom WordPress plugin that allows you to:

Dashboard Overview Game List View Game List View

2. System Requirements

3. WordPress Installation Guides

Before using the SlotWP plugin, you must have WordPress installed. Choose one of the following options based on your setup:

These detailed guides will walk you through every step, from domain/hosting setup to a fully working WordPress installation.

4. Installation Guide

  1. Download the slotwp_plugin.zip file.
  2. Go to your WordPress admin dashboard.
  3. Navigate to Plugins → Add Plugin → Upload Plugin.
  4. Upload the ZIP file and click Install Now.
  5. Click Activate Plugin after installation.

5. How to Use

Upload Panel Credit Editor Game Setting

6. API Setup (Built-in Authentication)

SlotWP provides a simple and secure built-in authentication system using base64-encoded tokens. This system is lightweight, fast, and does not require any additional plugins or configurations.

🔐 Available Endpoints

You can interact with SlotWP’s REST API using these endpoints:

📘 Login Example

Send a POST request to /wp-json/wlogin/v1/login:

{
    "username": "your_username",
    "password": "your_password"
  }

The response will contain a base64-encoded token:

{
    "status": "success",
    "token": "base64encoded-token-here"
  }

Use this token in the Authorization header for future requests:

Authorization: Bearer base64encoded-token-here

🧪 Health Check

In the plugin dashboard, you’ll see a REST API Health Check section that verifies these endpoints are active and responding. This helps confirm your server supports loopback and internal HTTP calls.

❗ Troubleshooting

If you see errors, here are common issues and how to fix them:

Issue How to Fix
❌ 404 Not Found - Go to Settings → Permalinks in WordPress and click Save Changes.
- Make sure the SlotWP plugin is active and not conflicting with another plugin.
❌ Unreachable - Your server may block internal loopback requests.
- Ensure cURL or fsockopen is enabled in your PHP environment.
- Add define('WP_ALTERNATE_CRON', true); to wp-config.php if needed.
🔒 401 Unauthorized - Double-check the Authorization header contains a valid token.
- Log in again to get a new token if the previous one expired or was malformed.

📞 Need Help?

If you're still facing issues after following the above steps, we recommend reaching out to:

REST API Health Check REST API Health Check

7. Frequently Asked Questions

Q: What menus are available in the SlotWP admin panel?

The SlotWP plugin adds a new main menu "Slot WP" in your WordPress dashboard. It includes the following submenus:

Q: Can I upload multiple games?

Yes. You can upload multiple games via the "Upload Game" menu. Each game will be stored in its own folder and accessible through the Game Setting section.

Q: How can I update a user's credit?

Navigate to the User Credit menu, locate the user by email or username, then click "Edit" to modify their balance directly.

Q: How are game settings configured?

Each game includes a file named game_setting.json, which defines configurable options such as:

You can edit this file directly from the admin Game Setting page. This allows flexibility without modifying source code.

Q: Where is spin history stored?

Spin logs are saved securely inside WordPress user meta under the key slotwp_spin_history. Each record includes timestamp, bet size, win amount, game name, and spin type.

Q: How to activate the license?

Go to the License menu, input your Envato purchase code and domain. The system will verify your license through our secure API before enabling plugin features.

Upload Game Menu User Credit Menu Game Setting Menu Fund Control Menu

8. Technical Support

If you need help, have pre-sale questions, or face any technical issues, we're here to support you.

We respond to all support inquiries within 24 hours (Monday to Friday, GMT+7).

9. Notes on Game Files

All game applications and HTML outputs used in this plugin are developed and exported via Construct 3 – a powerful visual game engine. These exports are packaged into a single HTML file, then zipped for upload through the admin panel.

Game images (such as symbols, backgrounds, and icons) can be found in the images folder of the HTML game package. You're free to replace these images with your own, provided the filenames and formats remain the same.

Please note that while image assets can be updated easily, the core HTML structure is generated by Construct 3 and is optimized for performance. We recommend keeping the original structure intact for best compatibility.

With the SlotWP plugin, all you need to do is prepare your game ZIP and upload it – no technical knowledge required.

Construct 3 Export Example Editable Image Folder
× Zoomed Preview