WordPress Plugin v1.6.3

WE88 Portal

BFF proxy architecture connecting WordPress to the WE88 gaming platform. React widgets, Gutenberg blocks, encrypted sessions, and a full REST API.

PHP 8.1+ / WordPress 6.3+ / GPL-2.0

Everything you need

A complete gaming portal integration, deployed as a single WordPress plugin.

BFF Architecture

Backend-for-Frontend proxy. The browser never talks to the upstream API. All credentials stay server-side, encrypted with AES-256-CBC.

React Widgets

8 React widgets auto-discovered via data attributes. Login, games lobby, balance, profile, promotions, announcements, and more.

Gutenberg Blocks

Every widget available as a server-side-rendered Gutenberg block. Drag, drop, configure via the block inspector panel.

Theme Editor

Visual theme editor with live preview. Customize colors, typography, layout, and branding from the WP admin panel.

Security

AES-256-CBC token encryption, HttpOnly session cookies, rate limiting, sensitive data stripping, CSRF nonce protection.

i18n Ready

Full WordPress internationalization support. Ships with a Thai translation and a .pot template for additional languages.

Color Engine

Five one-click color schemes — Dark Gold, Royal Blue, Emerald, Crimson, Neon Purple. WordPress Style Variations re-skin the theme and every plugin widget together from a single --we88-* token contract.

Turnkey Install

Activate the companion theme and the WE88 Portal plugin installs and activates itself from a bundled copy. A one-click admin notice covers any host where auto-provisioning can't run.

Architecture

Three-tier BFF pattern — the browser never touches the upstream API

01

Browser — React Widgets

Frontend widgets communicate only with the WordPress REST API via fetch + WP nonce

wp-json/we88-portal/v1/*
02

WordPress Plugin — BFF Proxy

Session management, caching, rate limiting, token encryption. All credentials stay here.

X-API-Token + Authorization: Bearer
03

WE88 Portal API — Cloudflare Worker

Authentication, game catalog, wallet operations, SSO, maintenance status

Internal upstream calls
04

WE88 Upstream Platform

Third-party gaming platform — player accounts, games, wallets, transactions

Quick Start

1

Download & Install

Upload the plugin ZIP via WordPress admin or clone into wp-content/plugins/

terminal
# From release ZIP
WordPress Admin → Plugins → Add New → Upload

# Or from source
cd wp-content/plugins/
git clone <repo-url> we88-portal
cd we88-portal && npm run build
2

Activate & Configure

Activate the plugin, then navigate to Settings → WE88 Portal

wp-admin settings
API URL     https://we88-api.orbit.limited
API Token   we88_live_************************
Timeout     10 seconds
Retries     2
3

Add Widgets to Pages

Use shortcodes or Gutenberg blocks to embed gaming widgets

wordpress editor
[we88_login]
[we88_games provider="pragmatic" columns="4"]
[we88_balance interval="10"]
[we88_profile]
4

Test Connection

Click Test Connection in the settings page to verify API connectivity and check latency.

Shortcodes

Drop these into any page or post. React widgets mount automatically.

Shortcode Description Attributes Example
[we88_login]Login / register / forgot-password[we88_login]
[we88_profile]User profile information[we88_profile]
[we88_games]Games lobby with filteringprovider, category, columns, per_page[we88_games columns="3"]
[we88_balance]Account balance + walletsinterval, show_wallets[we88_balance interval="10"]
[we88_reviews]User reviews with pagination[we88_reviews]
[we88_popup_menu]Floating navigation menu[we88_popup_menu]
[we88_promotions]Promotion cardslimit[we88_promotions limit="3"]
[we88_banners]Home-page bannerslimit[we88_banners limit="3"]
[we88_announcements]Site announcement (sanitised HTML)[we88_announcements]
[we88_inbox]Member inbox / messages[we88_inbox]

Where to use shortcodes

Five ways to drop a WE88 widget into a site. Pick the one that matches your editor or builder.

Classic Editor

Paste the shortcode directly into the post or page body. Works on any WordPress install with the Classic Editor plugin.

[we88_login]
[we88_games columns="4"]

Gutenberg Shortcode Block

Inside the block editor, add the core Shortcode block and paste any [we88_*] tag. Useful when you want shortcode syntax instead of the dedicated WE88 block.

Block: Shortcode
[we88_balance interval="10"]

Widget Areas

For classic (non-FSE) themes with sidebars or footer widget areas, add a Shortcode widget and paste the tag.

Appearance → Widgets
Add: Shortcode
[we88_popup_menu]

Classic PHP Theme

Embed inside header.php, page-*.php, or any template file via do_shortcode(). Useful for legacy themes or hard-coded layouts.

<?php
echo do_shortcode('[we88_login]');
?>

Page Builders

Elementor, Divi, Bricks, Beaver Builder — all support a "Shortcode" widget/element. Drop in the WE88 tag and the React widget mounts automatically.

Widget: Shortcode
[we88_promotions limit="3"]

Don't use here

Avoid shortcodes inside FSE block-theme templates (templates/*.html) and patterns. Block templates don't run shortcodes by default — use the matching Gutenberg block (wp:we88/login) instead.

REST API

Base URL: /wp-json/we88-portal/v1

MethodEndpointAuthDescription
POST/auth/loginPublicUser login (rate-limited: 5/min per IP)
POST/auth/registerPublicUser registration (auto-login on success)
POST/auth/logoutSessionDestroy session
POST/auth/forgot-passwordPublicPassword reset request
GET/auth/checkPublicPre-register availability (type=username/email/mobileno, value)
GET/meSessionCurrent user (id, username, affiliate code)
GET/me/profileSessionFull profile (nickname, email, mobile)
GET/me/balanceSessionAccount balance (cached 10s)
GET/me/walletsSessionWallet breakdown
POST/me/passwordSessionChange password (current_password, new_password)
GET/me/inboxSessionMember inbox messages
GET/me/inbox/unread-countSessionUnread message count
GET/gamesPublicList games (filterable by provider)
GET/games/providersPublicList game providers
GET/games/categoriesPublicList game categories
POST/games/launchSessionLaunch game (game_code, game_type, vendor)
GET/maintenancePublicVendor maintenance status
GET/ssoSessionSSO redirect URL (deposit/withdrawal/profile)
GET/promotionsPublicMarketing promotions
GET/bannersPublicHome-page banners
GET/announcementsPublicSite announcement (HTML string)
GET/reviewsPublicUser reviews (paginated)
GET/theme-configPublicTheme tokens for widget styling
GET/healthNonePlugin status & version
GET/health/apiAdminExternal API connectivity + latency

Configuration

All settings managed from Settings → WE88 Portal in wp-admin

API Connection

API URLhttps://we88-api.orbit.limited
API TokenAES-256-CBC encrypted
Timeout5 – 60s (default: 10)
Retries0 – 5 (default: 2)

Environment

Environmentproduction / test
Debug ModeEnable diagnostic logging
Cache TTL0 (off) or 60 – 3600s (default: 300)

Cache TTLs

Games listCache TTL (300s)
ProvidersCache TTL (300s)
CategoriesCache TTL (300s)
Balance10s (fixed)

Theme Editor

ColorsPrimary, secondary, bg, text
LayoutColumns, card style, spacing
TypographyFont family, base size
BrandingLogo URL, site name

Get the bundle

Plugin + companion theme — install both for the full experience, or just the plugin if you're bringing your own theme.

Plugin · Latest Stable
WE88 Portal v1.6.3

Full WordPress plugin with BFF proxy, 8 React widgets, 8 Gutenberg blocks, encrypted sessions, REST API, and Thai translation.

PHP 8.1+ WordPress 6.3+ GPL-2.0
Download plugin View live widget demo

we88-portal.zip

Theme · Classic layout
WE88 Dark Gold v1.2.0

Professional FSE block theme tailored for this plugin. Five built-in color schemes (Dark Gold + Royal Blue, Emerald, Crimson, Neon Purple) re-skin theme and widgets together, plus turnkey auto-install of the plugin on activation. Sora/Inter/JetBrains Mono, patterns wired to the portal's blocks.

Block theme (FSE) WordPress 6.6+ GPL-2.0
Download theme View live theme demo

we88-dark-gold.zip

Theme · Minimal layout
WE88 Minimal v1.0.0

Clean, airy, content-first layout — flat surfaces, hairline borders and generous whitespace. Carries all 5 color schemes and the turnkey plugin install.

Block theme (FSE) WordPress 6.6+ GPL-2.0
Download theme View live theme demo

we88-minimal.zip

Theme · Arcade layout
WE88 Arcade v1.0.0

Bold, high-energy and games-first — chunky cards, a dense game grid, vivid accents and playful motion. All 5 color schemes + turnkey install.

Block theme (FSE) WordPress 6.6+ GPL-2.0
Download theme View live theme demo

we88-arcade.zip

Theme · Magazine layout
WE88 Magazine v1.0.0

Editorial and content-forward — multi-column promotions and reviews, column rules and big display headings. All 5 color schemes + turnkey install.

Block theme (FSE) WordPress 6.6+ GPL-2.0
Download theme View live theme demo

we88-magazine.zip

Theme · App layout
WE88 App v1.0.0

Compact, member-area-first app shell — a card dashboard of balance, profile and inbox with the quick-links FAB front and center. All 5 color schemes + turnkey install.

Block theme (FSE) WordPress 6.6+ GPL-2.0
Download theme View live theme demo

we88-app.zip