WordPress Plugin v1.0.0

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.0+ / 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

9 React widgets auto-discovered via data attributes. Login, games lobby, balance, profile, transactions, promotions, 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.

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]Promotions & banner cardslimit[we88_promotions limit="3"]
[we88_transactions]Transaction history tableper_page[we88_transactions]
[we88_announcements]Notification cardslimit[we88_announcements limit="5"]

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/meSessionCurrent user profile
GET/me/balanceSessionAccount balance (cached 10s)
GET/me/walletsSessionWallet breakdown
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/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 TTL60 – 3600s (default: 300)

Cache TTLs

Games list180s
Providers300s
Categories300s
Balance10s

Theme Editor

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

Download

Latest Stable
WE88 Portal v1.0.0

Full plugin ZIP with compiled frontend assets, Gutenberg blocks, and Thai translation.

PHP 8.1+ WordPress 6.0+ GPL-2.0
Download ZIP

we88-portal-v1.0.0.zip