Title: Init User Engine – Gamified, Fast, Frontend-First
Author: Init HTML
Published: <strong>17 July 2025</strong>
Last modified: 5 November 2026

---

Search plugins

![](https://ps.w.org/init-user-engine/assets/banner-772x250.png?rev=3329854)

![](https://ps.w.org/init-user-engine/assets/icon-256x256.png?rev=3329854)

# Init User Engine – Gamified, Fast, Frontend-First

 By [Init HTML](https://profiles.wordpress.org/brokensmile2103-1/)

[Download](https://downloads.wordpress.org/plugin/init-user-engine.1.7.6.zip)

 * [Details](https://en-gb.wordpress.org/plugins/init-user-engine/#description)
 * [Reviews](https://en-gb.wordpress.org/plugins/init-user-engine/#reviews)
 *  [Installation](https://en-gb.wordpress.org/plugins/init-user-engine/#installation)
 * [Development](https://en-gb.wordpress.org/plugins/init-user-engine/#developers)

 [Support](https://wordpress.org/support/plugin/init-user-engine/)

## Description

**Init User Engine** is a lightweight, no-bloat user system for modern WordPress
sites. It’s designed for maximum frontend flexibility and gamified user engagement.
All dynamic interfaces are rendered via JavaScript with real-time REST API interaction.

No jQuery. Minimal settings. Smart by default.

What you get:

 * Display user avatar and dashboard via shortcode
 * Show level, EXP, Coin/Cash, and full user wallet
 * Frontend login & registration modal with Cloudflare Turnstile (or built-in math
   captcha) protection
 * Let users check-in daily and receive timed rewards
 * Auto-track referral registrations with reward system
 * Let users buy VIP status using Coin, Cash, or both
 * Redeem Code / Gift Code and dedicated VIP Code system, with CSV export from wp-
   admin
 * Built-in inbox for notifications (uses custom DB table), with pinned/expiring
   messages and a stats dashboard
 * Custom avatar support with upload & preview modal
 * Send custom notifications to selected users or all members from wp-admin
 * Optional “Require Login to Access Site” mode that gates the entire frontend behind
   the built-in login modal
 * Optional one-step “Login After Register” so new users land on the site already
   signed in

This plugin is the core user system behind the [Init Plugin Suite](https://en.inithtml.com/init-plugin-suite-minimalist-powerful-and-free-wordpress-plugins/)–
optimized for frontend-first interaction, extensibility, and real-time gamification.

GitHub repository: [https://github.com/brokensmile2103/init-user-engine](https://github.com/brokensmile2103/init-user-engine)

### Features

**Profile & Avatar**

 * Avatar shortcode `[init_user_engine]` – renders the guest login button or the
   logged-in avatar with dropdown dashboard automatically
 * Modal dashboard showing level, EXP progress, Coin/Cash wallet, and quick links
 * Custom avatar upload with live preview, crop-free flow, and one-click revert 
   to the default/Gravatar image
 * Configurable upload policy (allow everyone, VIP only, or disable uploads entirely)
   with a configurable max file size
 * Optional display name change limit (e.g. once every 7 days, like TikTok), enforced
   in the profile modal, `wp-admin/profile.php`, the REST API and WooCommerce Account
   details
 * Configurable length limits for every Edit Profile field (display name, bio, Discord,
   links), with a live character counter for the bio
 * Hardened Edit Profile: changing the password asks for the current password, signs
   out other devices and sends the WordPress “password changed” email
 * Theme override support: any template file can be overridden by copying it to `
   your-theme/init-user-engine/`

**Accounts, Login & Registration**

 * Frontend login & registration modal – no theme editing or template overrides 
   required
 * “Login After Register” option to automatically sign users in right after they
   create an account (disabled by default)
 * Failed logins reopen the login modal on the current page with an inline error
   message, instead of redirecting to `wp-login.php`
 * Cloudflare Turnstile captcha on registration, with a built-in math-question captcha
   as automatic fallback when no Turnstile keys are set
 * Optional protection of the native WordPress login, registration, and lost-password
   forms (`wp-login.php`) using the same Turnstile setup
 * “Forgot password?” form right inside the login modal, using the native WordPress
   reset flow (can be turned off; a custom Lost Password URL always takes priority)
 * Custom redirect URLs for “Register” and “Lost password” links
 * Optional “Require Login to Access Site” mode that gates the entire frontend behind
   the built-in login modal
 * Ability to temporarily disable new registrations without affecting other plugins
   or WordPress core

**Gamification**

 * EXP & Level system with hookable progression logic
 * Coin & Cash dual-wallet system with transaction logs and a configurable exchange
   rate between the two currencies
 * Daily check-in with streak milestones and an online-time bonus timer
 * Optional **Streak Recovery**: members who miss a few days can spend Coin to keep
   their check-in streak alive (allowed missed days and Coin price per day are configurable,
   off by default)
 * Built-in reward hooks for registration, daily login, comments, published posts,
   and completed WooCommerce orders (when WooCommerce is active)

**VIP Membership**

 * VIP membership system with Coin-based, Cash-based, or combined purchase options
 * Multiple configurable pricing tiers per duration, including a lifetime option
 * VIP bonus multipliers for Coin/EXP earning
 * Optional VIP purchase lock (globally disable new purchases) and stacking restriction

**Referral**

 * Referral module with cookie-based signup tracking
 * Separate, configurable rewards for both the referrer and the newly referred user

**Redeem & VIP Codes**

 * Redeem Code / Gift Code module – code in, rewards out
 * Dedicated VIP Codes module to grant VIP duration through a code
 * One-click CSV export for both code lists (full list, streamed in batches, UTF-
   8 BOM, and sanitized against CSV/formula injection)

**Inbox & Notifications**

 * Built-in inbox system with pagination and read/claim/delete actions
 * Pinned messages that automatically unpin once read, or once their optional expiration
   time passes
 * Admin panel to send custom notifications to selected users or all members, with
   priority and expiration
 * Inbox Statistics dashboard (Users  Init User Engine  Inbox Statistics) with date-
   range filtering
 * Optional automatic cleanup of read messages older than a set number of days (
   unread, pinned and assigned-code messages are always kept)

**Admin Tools**

 * Manual Top-up tool for Coin/Cash (Users  Init User Engine  Top-up Coin/Cash)
 * Per-user overview metabox on the WordPress profile/edit-user screen (level, wallet,
   VIP status, recent activity), with one-click Remove VIP, Ban Avatar Upload and
   Unlock Display Name actions

**Developer-Friendly**

 * REST API for all features (read/write/modify)
 * Action/filter hooks for full customization
 * Pure Vanilla JS frontend – no jQuery, no server bloat

### Developer Hooks

### Filters

 * `init_plugin_suite_user_engine_online_minutes` – Modify required online minutes
   after check-in
 * `init_plugin_suite_user_engine_vip_prices` – Modify VIP package prices
 * `init_plugin_suite_user_engine_referral_rewards` – Modify referral rewards
 * `init_plugin_suite_user_engine_localized_data` – Modify frontend JS data
 * `init_plugin_suite_user_engine_calculated_coin_amount` – Modify Coin reward before
   apply
 * `init_plugin_suite_user_engine_calculated_exp_amount` – Modify EXP reward before
   apply
 * `init_plugin_suite_user_engine_exp_required` – Modify EXP required per level
 * `init_plugin_suite_user_engine_checkin_milestones` – Set milestone streak days
 * `init_plugin_suite_user_engine_format_inbox` – Modify formatted inbox data
 * `init_plugin_suite_user_engine_render_level_badge` – Customize level badge HTML
 * `init_plugin_suite_user_engine_inbox_insert_data` – Modify inbox data before 
   inserting into database
 * `init_plugin_suite_user_engine_validate_register_fields` – Validate or modify
   registration fields before account creation
 * `init_plugin_suite_user_engine_after_register` – Hook after successful user registration(
   pass user ID and submitted data)
 * `init_plugin_suite_user_engine_daily_tasks` – Add or modify daily task list and
   logic
 * `init_plugin_suite_user_engine_captcha_bank` – Extend or modify the internal 
   captcha question bank used for fallback validation
 * `init_plugin_suite_user_engine_format_log_message` – Customize transaction log
   message display with access to entry data, source, type, and amount
 * `init_plugin_suite_user_engine_should_keep_original` – Override decision to keep
   original uploaded avatar (GIF or other formats)
 * `init_plugin_suite_user_engine_vip_expire_soon_threshold` – Modify the threshold(
   in seconds) used to determine when VIP is considered close to expiration
 * `init_plugin_suite_user_engine_body_vip_classes` – Add, remove, or modify VIP-
   related CSS classes applied to the `<body>` element
 * `init_plugin_suite_user_engine_theme_colors` – Modify theme color system (primary
   and active colors)
 * `init_plugin_suite_user_engine_streak_restore_max_days` – Modify how many missed
   check-in days a user may cover to keep their streak (return `0` to disable it
   for that user)
 * `init_plugin_suite_user_engine_streak_restore_cost` – Modify the Coin cost of
   keeping a streak (receives total cost, missed days, and user ID)
 * `init_plugin_suite_user_engine_lostpassword_modal_enabled` – Enable or disable
   the lost password form inside the login modal (receives the current value and
   the plugin settings)
 * `init_plugin_suite_user_engine_display_name_change_days` – Modify how many days
   a member has to wait between two display name changes (receives the days from
   the settings and the user ID; `0` = unlimited)
 * `init_plugin_suite_user_engine_display_name_limit_applies` – Return `false` to
   let a user (or role) change their display name freely (receives the current value
   and the user ID)
 * `init_plugin_suite_user_engine_inbox_auto_delete_days` – Modify how many days
   read Inbox messages are kept before automatic deletion (`0` = never)
 * `init_plugin_suite_user_engine_inbox_auto_delete_keep_meta_keys` – Metadata keys
   that mark an Inbox message to keep during automatic deletion (default `created_by`)
 * `init_plugin_suite_user_engine_inbox_auto_delete_batch` / `init_plugin_suite_user_engine_inbox_auto_delete_time_limit`–
   Ids per `DELETE` (default 5000) and seconds per run (default 20) of the automatic
   deletion
 * `init_plugin_suite_user_engine_dashboard_stats_max_age` – How old (in seconds)
   the Dashboard Inbox widget numbers may be before a background refresh (default
   900)
 * `init_plugin_suite_user_engine_profile_field_limits` – Modify the maximum characters
   of the Edit Profile fields (keys `display_name`, `bio`, `discord`, `url`; values
   are clamped to the hard ceilings 250 / 10000 / 255 / 2048)
 * `init_plugin_suite_user_engine_profile_url_hosts` – Domains accepted for the `
   facebook`, `twitter` and `website` fields (return an empty array to accept any
   domain)
 * `init_plugin_suite_user_engine_profile_genders` – Allowed values of the Gender
   field (default `''`, `male`, `female`, `other`)
 * `init_plugin_suite_user_engine_profile_update_rate_limit` – Edit Profile saves
   allowed per minute (default 10, `0` = no limit)
 * `init_plugin_suite_user_engine_require_current_password` – Whether the current
   password is required to set a new one (default `true`, not recommended to turn
   off)
 * `init_plugin_suite_user_engine_current_password_attempts` – Wrong current passwords
   allowed per 15 minutes (default 5)
 * `init_plugin_suite_user_engine_password_max_length` – Maximum length of a new
   password (default 128)
 * `init_plugin_suite_user_engine_validate_new_password` – Return a `WP_Error` to
   refuse a new password (for a stronger policy)
 * `init_plugin_suite_user_engine_avatar_mimes` – File types accepted for avatar
   uploads (default jpg, png, gif, webp; SVG is never accepted)
 * `init_plugin_suite_user_engine_avatar_upload_rate_limit` – Avatar uploads allowed
   per hour (default 10, `0` = no limit)

### Actions

 * `init_plugin_suite_user_engine_level_up` – When user levels up
 * `init_plugin_suite_user_engine_exp_added` – After EXP is added
 * `init_plugin_suite_user_engine_transaction_logged` – After Coin/Cash is logged
 * `init_plugin_suite_user_engine_exp_logged` – After EXP log is recorded
 * `init_plugin_suite_user_engine_inbox_inserted` – After new inbox message
 * `init_plugin_suite_user_engine_inbox_auto_deleted` – After an automatic cleanup
   of read Inbox messages finishes (number deleted, cutoff)
 * `init_plugin_suite_user_engine_referral_completed` – When referral is completed
 * `init_plugin_suite_user_engine_after_checkin` – After user check-in
 * `init_plugin_suite_user_engine_streak_restored` – After a user paid Coin to keep
   their check-in streak (user ID, missed days, cost, new streak)
 * `init_plugin_suite_user_engine_after_claim_reward` – After user claims reward
 * `init_plugin_suite_user_engine_vip_purchased` – After VIP is purchased
 * `init_plugin_suite_user_engine_add_exp` – Triggered when adding EXP via hook
 * `init_plugin_suite_user_engine_add_coin` – Triggered when adding Coin via hook
 * `init_plugin_suite_user_engine_coin_changed` – After user’s Coin balance is updated
 * `init_plugin_suite_user_engine_cash_changed` – After user’s Cash balance is updated
 * `init_plugin_suite_user_engine_admin_send_notice` – When admin sends notification
   via wp-admin.
 * `init_plugin_suite_user_engine_display_name_unlocked` – After an administrator
   lets a member change their display name again (user ID)
 * `init_plugin_suite_user_engine_after_update_profile` – After a member saved the
   Edit Profile modal (user ID, submitted data without passwords)
 * `init_plugin_suite_user_engine_password_changed` – After a member changed their
   password from the Edit Profile modal (user ID)

### REST API Endpoints

**Base:** `/wp-json/inituser/v1/`

 * `POST /register` – Create a new user account
 * `POST /checkin` – Daily check-in (optional JSON body: `prompt_restore`, `restore_streak`,`
   restore_cost` for Streak Recovery)
 * `POST /claim-reward` – Claim reward after online duration
 * `GET /transactions` – Get Coin/Cash transaction log
 * `GET /exp-log` – Get EXP log
 * `GET /inbox` – Get inbox messages
 * `POST /inbox/mark-read` – Mark a message as read
 * `POST /inbox/mark-all-read` – Mark all as read
 * `POST /inbox/delete` – Delete a single message
 * `POST /inbox/delete-all` – Delete all messages
 * `POST /vip/purchase` – Purchase VIP package
 * `GET /referral-log` – Get referral history
 * `POST /avatar` – Upload new avatar
 * `POST /avatar/remove` – Remove custom avatar and revert to default
 * `GET /profile/me` – Get current user profile (includes `display_name_limit`: `
   days`, `locked`, `next_change`, `notice`; `limits`: maximum characters per field;`
   require_current_password`)
 * `POST /profile/update` – Update profile information. Every field is checked before
   anything is saved; errors return HTTP 400/403/429 with `data.field` naming the
   field. Changing the password needs `current_password` and returns a new `nonce`
 * `GET /daily-tasks` – Get list of completed daily tasks and rewards
 * `POST /exchange` – Convert Cash  Coin based on exchange rate
 * `POST /redeem-code` – Redeem gift code (returns Coin/Cash rewards)

### License

This plugin is licensed under the GPLv2 or later.
 You are free to use, modify, 
and distribute it under the same license.

## Screenshots

[⌊Settings with options for theme color, currency labels, and admin bar/Gravatar
control.⌉⌊Settings with options for theme color, currency labels, and admin bar/
Gravatar control.⌉[

Settings with options for theme color, currency labels, and admin bar/Gravatar control.

[⌊Custom Links section for setting Register and Lost Password URLs.⌉⌊Custom Links
section for setting Register and Lost Password URLs.⌉[

Custom Links section for setting Register and Lost Password URLs.

[⌊Check-in Reward configuration, including Coin, EXP, and Cash per check-in.⌉⌊Check-
in Reward configuration, including Coin, EXP, and Cash per check-in.⌉[

Check-in Reward configuration, including Coin, EXP, and Cash per check-in.

[⌊Online Reward configuration based on active time with reward values.⌉⌊Online Reward
configuration based on active time with reward values.⌉[

Online Reward configuration based on active time with reward values.

[⌊VIP Pricing options for various durations, including lifetime.⌉⌊VIP Pricing options
for various durations, including lifetime.⌉[

VIP Pricing options for various durations, including lifetime.

[⌊VIP Bonus settings to configure extra Coin/EXP for VIP users.⌉⌊VIP Bonus settings
to configure extra Coin/EXP for VIP users.⌉[

VIP Bonus settings to configure extra Coin/EXP for VIP users.

[⌊Referral Reward settings for both referrer and new user.⌉⌊Referral Reward settings
for both referrer and new user.⌉[

Referral Reward settings for both referrer and new user.

[⌊Admin panel to send notifications with content, targeting, priority, and expiration.⌉⌊
Admin panel to send notifications with content, targeting, priority, and expiration
.⌉[

Admin panel to send notifications with content, targeting, priority, and expiration.

[⌊Login modal interface for non-logged-in users.⌉⌊Login modal interface for non-
logged-in users.⌉[

Login modal interface for non-logged-in users.

[⌊Registration modal with username, email, and password fields.⌉⌊Registration modal
with username, email, and password fields.⌉[

Registration modal with username, email, and password fields.

[⌊Avatar button with dropdown panel showing user info, level, stats, and quick links.⌉⌊
Avatar button with dropdown panel showing user info, level, stats, and quick links
.⌉[

Avatar button with dropdown panel showing user info, level, stats, and quick links.

[⌊VIP Membership modal with Coin-based purchase options and expiration note.⌉⌊VIP
Membership modal with Coin-based purchase options and expiration note.⌉[

VIP Membership modal with Coin-based purchase options and expiration note.

[⌊Inbox modal showing system messages, rewards, and user notifications.⌉⌊Inbox modal
showing system messages, rewards, and user notifications.⌉[

Inbox modal showing system messages, rewards, and user notifications.

[⌊Transaction history modal showing all reward activities (check-in, referral, online
time...).⌉⌊Transaction history modal showing all reward activities (check-in, referral,
online time...).⌉[

Transaction history modal showing all reward activities (check-in, referral, online
time…).

[⌊Referral modal with shareable code/link, social sharing buttons, and referral 
history.⌉⌊Referral modal with shareable code/link, social sharing buttons, and referral
history.⌉[

Referral modal with shareable code/link, social sharing buttons, and referral history.

## Installation

 1. Upload the plugin to `/wp-content/plugins/init-user-engine`
 2. Activate it via the Plugins screen
 3. Use `[init_user_engine]` in any page/post/template
 4. You’re done – modals and logic load automatically

## FAQ

### How do I customize the UI?

The frontend is written in modular Vanilla JS with minimal HTML structure.
 Override
styles via your theme or inject custom JS as needed.

### Where is user data stored?

 * `user_meta`: EXP, level, Coin, Cash, VIP, referral
 * `wp_init_user_engine_inbox`: inbox messages (custom DB table)

### Can I extend or integrate it?

Yes. The plugin is built around WordPress hooks and REST API. You can inject logic
via `add_action`, `add_filter`, or build your own UI on top of the endpoints.

### Is it compatible with WooCommerce or BuddyPress?

Not officially, but it’s modular and can be integrated via code or future addons.

### How do I send messages to users manually?

Go to **Users  Init User Engine  Send Notification** in wp-admin.
 You can search
users, customize message type, link, priority, and even set expiration.

## Reviews

![](https://secure.gravatar.com/avatar/53f757085bc99ffc9d7c47fcf01c37f2f31e2cc9d0c94f1fe95fdfb4943b8906?
s=60&d=retro&r=g)

### 󠀁[Plugin user system rất đáng dùng](https://wordpress.org/support/topic/plugin-user-system-rat-dang-dung-2/)󠁿

 [A3 Manga](https://profiles.wordpress.org/a3manga/) 26 July 2026 1 reply

Plugin nhẹ, chạy mượt và rất dễ tích hợp vào website. Mình thích nhất là các tính
năng như điểm EXP, Coin, check-in hằng ngày, VIP, referral và hệ thống thông báo
đều hoạt động ổn định. Giao diện hiện đại, tốc độ rất tốt. Rất đáng để trải nghiệm,
5 sao!

 [ Read all 1 review ](https://wordpress.org/support/plugin/init-user-engine/reviews/)

## Contributors and Developers

“Init User Engine – Gamified, Fast, Frontend-First” is open source software. The
following people have contributed to this plugin.

Contributors

 *   [ Init HTML ](https://profiles.wordpress.org/brokensmile2103-1/)

“Init User Engine – Gamified, Fast, Frontend-First” has been translated into 1 locale.
Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/init-user-engine/contributors)
for their contributions.

[Translate “Init User Engine – Gamified, Fast, Frontend-First” into your language.](https://translate.wordpress.org/projects/wp-plugins/init-user-engine)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/init-user-engine/),
check out the [SVN repository](https://plugins.svn.wordpress.org/init-user-engine/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/init-user-engine/)
by [RSS](https://plugins.trac.wordpress.org/log/init-user-engine/?limit=100&mode=stop_on_copy&format=rss).

## Change Log

#### 1.7.6 – November 6, 2026

 * New: **Profile Field Limits** (Init User Engine  Settings  Profile Field Limits).
   Maximum characters for the Edit Profile fields, with sensible defaults: Display
   Name 50, Bio 2000, Discord 100, Links (Facebook, Twitter, Website) 255
    - Checked on the server in characters, not bytes, so Vietnamese, other accented
      text and emoji count correctly. A field that is too long is refused with a
      clear message naming the field, and nothing is saved (no silent cutting)
    - Each value can be set from 1 up to a hard ceiling (Display Name 250 = the 
      size of the database column, Bio 10000, Discord 255, Links 2048). Empty or
      invalid values fall back to the default, so existing sites get the defaults
      without saving the settings
    - The form sets `maxlength` on every field and shows a live character counter
      under Bio. A display name that is already longer than a new limit is kept:
      only a new name is checked
    - New filter `init_plugin_suite_user_engine_profile_field_limits`
 * Security: changing the password in the Edit Profile modal now asks for the **
   current password**. Before, anyone with access to a signed-in browser (shared
   computer, stolen cookie, an XSS on another plugin) could set a new password and
   take over the account
    - 5 wrong current passwords per 15 minutes, then password changes are refused
      until the window ends
    - New passwords follow the same rules as the registration form (at least 6 characters,
      letters and numbers), up to 128 characters, and must be different from the
      current one
    - The password is now changed with `wp_update_user()` instead of `wp_set_password()`:
      the member stays signed in on this browser (before, they were silently signed
      out on the next request), WordPress sends its “password changed” email, and**
      every other device is signed out**. The response carries a new REST nonce,
      so the page keeps working without a reload
    - Members who signed up with a social login and never set a password can use“
      Lost password”. Filter `init_plugin_suite_user_engine_require_current_password`
      for special cases (not recommended)
 * Security: fixed a stored XSS in the Edit Profile modal. Saved values (Discord,
   links, bio) were written into the form’s HTML; Discord kept double quotes, so
   a value such as `x" onfocus="…` could run JavaScript. All values are now set 
   as plain text through the DOM, and error messages are escaped before display
 * Security: every request field must be text. Sending an array or object (for example`"
   display_name": []`) caused a PHP fatal error (HTTP 500) on PHP 8; it now returns
   HTTP 400. A missing or broken JSON body no longer wipes the profile
 * Security: display name, bio and Discord no longer accept invisible characters
   and text-direction controls (zero-width spaces, Hangul fillers, right-to-left
   overrides…), which allowed blank names or look-alike names of other members. 
   Emoji sequences and joiners needed by real text are kept
 * Security: links accept only `http://` and `https://` (no more `mailto:`, `ftp:`…),
   refuse `user@host` tricks such as `https://facebook.com@example.com`, and must
   use a real domain name. Facebook must link to `facebook.com` / `fb.com` / `fb.
   me` and Twitter to `twitter.com` / `x.com` (subdomains allowed); Website accepts
   any domain. Filter `init_plugin_suite_user_engine_profile_url_hosts`
 * Security: Gender only accepts the values offered in the form (filter `init_plugin_suite_user_engine_profile_genders`)
 * Security: the Edit Profile form can be saved at most 10 times per minute per 
   member (filter `init_plugin_suite_user_engine_profile_update_rate_limit`)
 * Security: passwords are no longer passed to the `init_plugin_suite_user_engine_after_update_profile`
   action
 * Security (avatar): uploads only accept JPG, PNG, GIF and WebP, checked by extension
   and real file content (before, any file type allowed by WordPress, such as PDF,
   was first moved into the uploads folder). Filter `init_plugin_suite_user_engine_avatar_mimes`;
   SVG is never accepted
 * Security (avatar): at most 10 uploads per hour per member (filter `init_plugin_suite_user_engine_avatar_upload_rate_limit`)
 * Fix (avatar): uploading a new avatar now deletes the files of the previous one,
   so the avatars folder no longer grows forever. “Remove Avatar” now also deletes
   the original GIF kept for VIPs. Only files of this plugin’s avatars folder that
   belong to the member are ever deleted
 * Fix: the bio and display name are saved with `wp_update_user()`, so core filters(`
   pre_user_description`…) and the `profile_update` hook run, and backslashes are
   no longer lost
 * Fix: a date of birth set to today was refused as “in the future” depending on
   the time of day
 * Developers: new filters `init_plugin_suite_user_engine_current_password_attempts`,`
   init_plugin_suite_user_engine_password_max_length`, `init_plugin_suite_user_engine_validate_new_password`,
   new action `init_plugin_suite_user_engine_password_changed`. Errors of `POST /
   profile/update` include `data.field`
 * Translations: POT file regenerated with WP-CLI, Vietnamese translation updated

#### 1.7.5 – October 25, 2026

 * Performance: after every plugin update, the upgrade routine ran `UPDATE … SET
   pinned = 0 WHERE pinned = 1 AND status = 'read'` on the whole Inbox table (a 
   one-time backfill for the “unpin when read” behaviour of 1.6.2). On large tables
   it showed up in the slow query log (about 2 seconds) even though there was nothing
   left to change. It now only runs when upgrading from a version older than 1.6.2
 * Tweak: spacing of the “Updated X ago” line in the Dashboard Inbox widget

#### 1.7.4 – October 25, 2026

 * New: **Delete read messages automatically** (Init User Engine  Settings  Inbox
   _Delete Read Messages After (days)_), off by default (`0`). Read messages received
   more than the set number of days ago are deleted once a day in the background,
   so the Inbox table no longer grows forever on busy sites
    - Always kept: unread messages, pinned messages, and messages carrying a redeem
      code or VIP code assigned to a member (deleting them would lose a code the
      member may not have used yet). Receipts such as “Redeem Code Success” are 
      deleted like any other read message
    - The age of a message is counted from the day it was received: the Inbox table
      does not record when a message was read, and adding a column to a table with
      millions of rows would need a heavy `ALTER TABLE` on every site
    - Deletes in small slices of the primary key (5,000 ids per `DELETE`), so each
      statement only locks a small part of the table and members’ Inboxes stay responsive.
      Each run stops after about 20 seconds and continues a minute later where it
      left off. In our test with 1.6 million messages, the first cleanup removed
      1.26 million read messages in about 24 seconds over 2 runs, no `DELETE` took
      more than 0.31 seconds, and the next daily run (with nothing left to delete)
      took 0.3 seconds
    - Messages whose ids are out of date order (imported, or with a back-dated `
      created_at`) are still found: the whole id range is scanned, not only the 
      ids before the cutoff date
    - Unread counts are never affected (only read messages are deleted). A database
      error leaves the position unchanged, so the next run retries the same slice;
      a lock prevents two runs at the same time
    - The settings page shows when the last cleanup ran and how many messages it
      deleted, or the progress of a cleanup still running
    - Setting the option back to `0` removes the scheduled task at once. Deactivating
      the plugin removes it too (a cleanup in progress continues after reactivation);
      uninstalling deletes its options
    - Developers: new filters `init_plugin_suite_user_engine_inbox_auto_delete_days`,`
      init_plugin_suite_user_engine_inbox_auto_delete_batch`, `init_plugin_suite_user_engine_inbox_auto_delete_time_limit`
      and `init_plugin_suite_user_engine_inbox_auto_delete_keep_meta_keys` (metadata
      keys that mark a message to keep, default `created_by`), action `init_plugin_suite_user_engine_inbox_auto_deleted`(
      number deleted, cutoff)
 * Performance (large sites): the **Inbox** widget on the WordPress Dashboard ran
   4 queries over the whole Inbox table (total, unread, today, recipients) inside
   the admin’s request, again every 5 minutes. With 1.6 million messages each query
   took up to 2.3 seconds and showed up in the slow query log
    - The numbers are now calculated in the background by WP-Cron and saved; the
      widget only reads the saved numbers, with 0 queries on the Inbox table when
      the Dashboard opens. When they are more than 15 minutes old (filter `init_plugin_suite_user_engine_dashboard_stats_max_age`),
      a refresh is scheduled and the previous numbers are shown meanwhile, with “
      Updated X ago”
    - The very first time, the widget says the numbers are being calculated and 
      shows them a minute later
    - Fix: “Today” now starts at midnight in the site’s time zone, like on the Inbox
      Statistics page (before, it started at midnight UTC)
    - Code quality: removed the `extract()` call from the widget
 * Fix: the database upgrade routine checked the `administrator` role instead of
   a capability; it now checks `manage_options`
 * Deactivation now also removes the Dashboard widget refresh task; uninstall also
   deletes the saved widget numbers
 * Translations: POT file regenerated with WP-CLI, Vietnamese translation updated

#### 1.7.3 – October 20, 2026

 * Fix: pass `home_url( add_query_arg( [] ) )` to `wp_login_url()` instead of `null`
   to avoid compatibility issues with newer PHP versions
 * Fix: admin menu icon display compatibility with the upcoming WordPress 7.2 release

#### 1.7.2 – October 19, 2026

 * New: **Buffer writes in object cache** (Init User Engine  Settings  Performance),
   off by default. On very busy sites the Transaction log and EXP log get one INSERT(
   and one commit) per reward, purchase, exchange or check-in: hundreds of thousands
   of writes a day. With this option the rows are first stored in the persistent
   object cache, and one WP-Cron event writes them to the database once a minute,
   both tables in the same run, with multi-row INSERTs of up to 500 rows: a few 
   thousand writes a day instead. In our test 1,000 log rows took 1,000 INSERTs 
   before, and 2 transactions (4 INSERTs) with the buffer
    - Needs a persistent object cache (Redis, Memcached…). Without one the option
      is disabled with an explanation and rows are written right away, as before
    - Only history rows are buffered. Coin, Cash and EXP balances are never buffered
      and are still changed atomically in the database right away
    - The time of each row is taken when it happens, not when it is written, so 
      the history keeps the right order and times. `init_plugin_suite_user_engine_log_transaction()`/`
      init_plugin_suite_user_engine_log_exp()` keep their signature and return value,
      and the `..._transaction_logged` / `..._exp_logged` actions still fire right
      away
    - New rows can take up to a minute to appear in the Transaction/EXP history,
      the daily tasks list and the Edit User box. The history caches of the members
      concerned are cleared after each write
    - Does not bloat the object cache: one small key per row (never one big array
      rewritten by every request), numbered with the atomic `wp_cache_incr()`. When
      more than 20,000 rows are waiting (filter `init_plugin_suite_user_engine_write_behind_max_pending`,
      about 4–5 MB), new rows go straight to the database. Rows expire from the 
      cache after a day
    - Never writes a row twice or skips one: each batch of rows and the “written
      up to” cursor are saved in the same database transaction. Tested by killing
      PHP (`kill -9`) in the middle of a batch, and with 50 processes writing at
      the same time while the flush ran: every row was written exactly once
    - If the object cache is flushed or restarted, rows not yet written are lost(
      history only, never balances) and a new buffer generation starts, so nothing
      gets stuck. A row whose number was taken but never stored is waited for, then
      skipped after 2 minutes. Both are counted on the settings page
    - Runs only from WP-Cron, on its own schedule _Init User Engine: write buffered
      logs_ (every 60 seconds, filter `init_plugin_suite_user_engine_flush_interval`).
      On sites that set `DISABLE_WP_CRON`, your system cron job runs it; that constant
      is never taken to mean the site has no cron. Visitors’ and admins’ requests
      never write the buffer, except when an admin clicks **Write buffered logs 
      now** or deactivates the plugin
    - Settings page status: rows waiting, last write, next run, rows written, skipped
      rows, cache resets and the last error. If nothing was written for 15 minutes
      while rows are waiting (filter `init_plugin_suite_user_engine_write_behind_stall_minutes`),
      a warning is shown
    - Turning the option off: new rows go straight to the database at once; rows
      already buffered are still written by the event, which then removes itself.
      Deactivating the plugin writes what is left (a few seconds at most)
    - The background Top-up job (1.7.1) always writes its log rows directly, because
      they are part of each member’s crash-safe transaction
    - EXP rows of a member deleted before the write are dropped, like the EXP history
      of deleted members
    - Developers: new filters `init_plugin_suite_user_engine_write_behind_enabled`,`
      init_plugin_suite_user_engine_flush_interval`, `init_plugin_suite_user_engine_write_behind_max_pending`,`
      init_plugin_suite_user_engine_write_behind_chunk` and `init_plugin_suite_user_engine_write_behind_stall_minutes`,
      action `init_plugin_suite_user_engine_write_behind_flushed`, and `init_plugin_suite_user_engine_write_behind_bypass()`
      to write directly from code that runs its own transaction
 * Translations: POT file regenerated with WP-CLI, Vietnamese translation updated

#### 1.7.1 – October 17, 2026

 * Performance (large sites): every Coin/Cash change scanned the whole `usermeta`
   table. The atomic `UPDATE` added in 1.6.8 picked the wallet row with a subquery
   on the same table (`WHERE umeta_id = ( SELECT id FROM ( SELECT MIN(umeta_id) …))`),
   which MySQL/MariaDB cannot resolve through the primary key: `EXPLAIN` showed 
   a full index scan (`type: index`, about 800k rows). In our 800k-row benchmark
   each check-in, reward, purchase, exchange or top-up spent about 0.3 seconds in
   the database, and the cost grew with the table
    - The wallet row is now looked up through the `user_id` index (only the rows
      of that one user are read), then changed by an `UPDATE … WHERE umeta_id = …`
      on the primary key: 1 row examined instead of the whole table, under 1 ms 
      in the same benchmark
    - Still atomic: the new value is computed by the database and the funds check
      stays in the `WHERE` clause of the `UPDATE`. If the row changes between the
      lookup and the `UPDATE`, nothing is written and the change is retried. Tested
      with 40 parallel requests on one wallet: no balance spent twice, no credit
      lost
    - A plain single-table `UPDATE` by primary key: no multi-table `UPDATE … JOIN`,
      deterministic for statement-based replication, and no new index on WordPress
      core tables
    - The admin **Top-up** tool (all members / VIP members) gets the same speed-
      up, since it makes one wallet change per member
    - Balance reads (`init_plugin_suite_user_engine_wallet_read()`, the `X-IUE-Coin`/`
      X-IUE-Cash` headers, `GET /balance`) no longer use `ORDER BY umeta_id LIMIT
      1`, which can make MySQL walk the primary key instead of the `user_id` index.
      The oldest row is picked in PHP, so the result is the same
    - Return values, error codes and the `init_plugin_suite_user_engine_coin_changed`/`...
      _cash_changed` actions are unchanged
 * Performance: the **Referral log** (`GET /referral-log`) now compares `iue_referred_by`
   as a string, the way it is stored, instead of making the database convert every
   value to a number (which also matched values such as `12abc`). The invited members
   are loaded with one query instead of one query per member
 * Performance: the list of active VIP members (used by the Top-up and Send Notification
   tools) no longer asks the database to count rows it never uses (`SQL_CALC_FOUND_ROWS`)
 * Code quality: table checks in the upgrade routine, the log migration, the Edit
   User box and Inbox Statistics now use the prepared, `esc_like()`-escaped helper
   instead of raw `SHOW TABLES LIKE '…'` queries
 * Performance (large sites): **Top-up Coin/Cash** and **Send Notification** to 
   _All members_ or _Active VIPs_ now run in the background through WP-Cron. Before,`
   get_users()` loaded every user ID inside the admin request, then made one wallet
   change, one log row and one Inbox message per member; with tens of thousands 
   of members the request could hit the PHP time limit halfway, with no way to know
   who had been paid
    - Members are walked by user ID in batches (100 for top-ups, 500 for notifications)
      with `ID > cursor`, never all at once and never with `OFFSET`. Each slice 
      runs for up to 20 seconds (or half of `max_execution_time` when lower), then
      the next slice is scheduled right away
    - Crash-safe top-ups: for each member, the wallet change, the transaction log
      row, the Inbox message and the job progress are saved in one database transaction.
      We killed PHP (`kill -9`) in the middle of a member: that member was rolled
      back and handled again, and all 12,003 test members were paid exactly once
    - Notifications: if PHP dies during a batch, the next run skips the members 
      who already got the message, so nobody gets it twice
    - New **Background Jobs** table on both pages with progress, members changed/
      messages sent, failures and status, plus a **Cancel** button (members already
      processed keep what they received). It refreshes by itself while the page 
      is open
    - Jobs only ever run from WP-Cron: the built-in WP-Cron, or your system cron
      job if the site sets `DISABLE_WP_CRON`. The admin page never runs a job by
      itself, so heavy work you moved to a system cron stays there. When PHP has
      no time limit (WP-CLI, or `php wp-cron.php` run from the command line by a
      system cron job), each run processes up to 60 seconds of work
    - If a job makes no progress for 15 minutes (filter `init_plugin_suite_user_engine_bulk_job_stall_minutes`;
      keep it longer than your system cron interval), its row shows a warning and
      a **Process from this page** button. Only after the admin clicks it does the
      open page process the job, a few seconds per request, sharing the same lock
      as WP-Cron
    - One job runs at a time, oldest first, and a site-wide lock keeps two processes
      from running the queue together. Job progress is read straight from the database,
      never from the object cache. A job interrupted by deactivating the plugin 
      continues once it is activated again
    - The same members as before are targeted (members of the current site on Multisite;
      for VIPs, the members whose VIP was active when the job was created)
    - _Selected users_ still runs right away, as before
    - In our benchmark the background top-up handled 12,003 members at about 2.7
      ms per member, and the notification to 12,003 members took less than one second
      of database work
    - Developers: for these two targets, `init_plugin_suite_user_engine_admin_send_notice`
      now fires once per batch, with the members of that batch. New actions `init_plugin_suite_user_engine_bulk_job_created`
      and `init_plugin_suite_user_engine_bulk_job_finished`, new filters `init_plugin_suite_user_engine_bulk_job_time_budget`,`
      init_plugin_suite_user_engine_bulk_job_batch_size`, `init_plugin_suite_user_engine_bulk_job_query_args`
      and `init_plugin_suite_user_engine_bulk_job_stall_minutes`
 * Performance: avatars in comment lists. Each member’s avatar reads the `iue_custom_avatar`
   user meta, which cost one query per commenter not yet in the cache. The users
   and user meta of the whole list are now loaded at once with `cache_users()`: 
   40 comments from 40 different members went from 82 queries to 5. This covers 
   the comment template, the Recent Comments block/widget, the wp-admin Comments
   screen and the REST API
 * Fixed: a Coin Top-up that included VIP members wrote their amount _with_ the 
   VIP Coin bonus into the transaction log, while the balance was changed without
   it (Top-up is a raw adjustment). The log now shows the amount actually applied
 * Translations: POT file regenerated with WP-CLI, Vietnamese translation updated

#### 1.7.0 – October 11, 2026

 * New: **Display Name Change Limit** (Init User Engine  Settings  Display Name).
   Members can change their display name only once every N days, like TikTok (for
   example 7). Set to 0 for unlimited changes; 0 is the default, so nothing changes
   until you set it
    - Enforced everywhere a member can change their own display name, not only in
      the Edit Profile modal: `wp-admin/profile.php` (WordPress lets members change
      it freely there), the core REST API (`/wp/v2/users/me`), WooCommerce Account
      details, and any other plugin that calls `wp_update_user()` for the signed-
      in member. The check runs in `wp_pre_insert_user_data`, so a change made too
      early keeps the current display name
    - The Edit Profile modal, `wp-admin/profile.php` and WooCommerce Account details
      show a clear message with the date and time of the next allowed change. While
      the member has to wait, the display name field is disabled in the modal and
      on `profile.php`
    - The Edit Profile modal returns an error (`display_name_locked`, HTTP 403) 
      and saves nothing when the display name cannot be changed yet; saving other
      fields with the same display name still works
    - Administrators (users who can edit other users) are not limited. A change 
      an administrator makes to a member’s display name does not start the member’s
      waiting period
    - New **Unlock Display Name** button in the user overview box on the Edit User
      screen (next to _Ban Avatar Upload_). It shows until when the member is locked,
      and one click lets them change their display name again right away; their 
      next change starts a new waiting period. Administrators only, protected by
      a nonce
    - The waiting period starts from the member’s last own change (user meta `iue_display_name_changed_at`).
      Changes are recorded even while the limit is 0, so a limit set later applies
      right away
    - Race-safe: the check and the record run under the per-user lock, so two requests
      sent at the same moment cannot both change the display name
    - New filters `init_plugin_suite_user_engine_display_name_change_days` and `
      init_plugin_suite_user_engine_display_name_limit_applies`, new action `init_plugin_suite_user_engine_display_name_unlocked`,
      and new PHP helpers `init_plugin_suite_user_engine_is_display_name_locked(
      $user_id )`, `init_plugin_suite_user_engine_get_display_name_next_change( 
      $user_id )` and `init_plugin_suite_user_engine_unlock_display_name( $user_id)`
    - `GET /wp-json/inituser/v1/profile/me` now includes `display_name_limit` (`
      days`, `locked`, `next_change`, `notice`)
 * `POST /profile/update` now returns the display name actually saved
 * Improved: the **Edit Profile** modal now opens right away with a loading spinner
   and fills in the form when the profile data arrives, like every other modal. 
   Before, nothing happened until the data was loaded, then the modal appeared all
   at once. If the modal is closed (or another modal is opened) while loading, the
   late response is ignored; if loading fails, the error is shown inside the modal
 * Fixed: a display name containing a double quote (`"`) broke the display name 
   field in the Edit Profile modal. The value is now set safely
 * Translations: POT file regenerated with WP-CLI, Vietnamese translation updated

View full changelog (all versions): [Init User Engine – Changelog](https://en.inithtml.com/plugin/init-user-engine/)

## Meta

 *  Version **1.7.6**
 *  Last updated **1 day ago**
 *  Active installations **20+**
 *  WordPress version ** 5.5 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/init-user-engine/) and [Vietnamese](https://vi.wordpress.org/plugins/init-user-engine/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/init-user-engine)
 * Tags
 * [check-in](https://en-gb.wordpress.org/plugins/tags/check-in/)[level](https://en-gb.wordpress.org/plugins/tags/level/)
   [referral](https://en-gb.wordpress.org/plugins/tags/referral/)[user](https://en-gb.wordpress.org/plugins/tags/user/)
   [vip](https://en-gb.wordpress.org/plugins/tags/vip/)
 *  [Advanced View](https://en-gb.wordpress.org/plugins/init-user-engine/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/init-user-engine/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/init-user-engine/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/init-user-engine/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/init-user-engine/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/init-user-engine/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/init-user-engine/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/init-user-engine/reviews/)

## Contributors

 *   [ Init HTML ](https://profiles.wordpress.org/brokensmile2103-1/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/init-user-engine/)