This documentation will guide you through the setup, usage, and support for SlotWP – a professional HTML5 casino game uploader and user credit manager plugin.
SlotWP is a custom WordPress plugin that allows you to:
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.
slotwp_plugin.zip
file.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.
You can interact with SlotWP’s REST API using these endpoints:
POST /wp-json/wlogin/v1/login
– Log in with username and password to receive a tokenGET /wp-json/wlogin/v1/me
– Retrieve user profile using the tokenSend 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
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.
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. |
If you're still facing issues after following the above steps, we recommend reaching out to:
The SlotWP plugin adds a new main menu "Slot WP" in your WordPress dashboard. It includes the following submenus:
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.
Navigate to the User Credit menu, locate the user by email or username, then click "Edit" to modify their balance directly.
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.
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.
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.
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).
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.