Guest Access
Better Messages supports guest chat. Visitors who are not logged in to WordPress can join chat rooms, start conversations, send messages and files and join calls, without creating an account. A guest signs up in a small form, keeps the same identity in that browser, and can become a member later without losing a conversation.
What it adds#
- Visitors chat without an account, in chat rooms that admit guests and in private conversations
- A sign-up form that asks for what the site needs: a display name, an email, an agreement to the terms of the site, a captcha
- Confirmed emails: a guest who confirms an email gets the unread message emails members get, and can sign in again from another browser
- Settings: the Settings screen members have, with the profile of the guest, the options that apply to a guest and Sign out
- From guest to member: a guest who registers or logs in is offered to move the guest conversations to the account
- Administration → Guests: every guest of the site with their email, location and activity, and a cleanup of the ones who never came back
- One visitor for every WordPlus plugin on the site: a guest is the same visitor to each of them
How it works#
A visitor who is not logged in and opens the messenger, the mini widget or a chat room that admits guests sees the sign-up form. Once they continue, Better Messages creates a guest and the browser keeps the id and the secret of that guest in its localStorage and IndexedDB. Every later visit from the same browser is the same guest.
| Action | Outcome |
|---|---|
| A visitor opens the messenger or a room that admits guests | The sign-up form, or no form at all where the site asks for nothing and the room joins automatically |
| The guest sends a message | The message shows with their display name and photo |
| The guest leaves and comes back in the same browser | The same guest, with the same conversations |
| The guest clears the site data of the browser | A new guest on the next visit, unless they confirmed an email and ask for a sign-in link |
| The guest registers or logs in | The question whether to move the guest conversations to the account |
| The guest opens a room that does not admit guests | The login message of the room, or a redirect to the login page |
The sign-up form#
The form shows wherever a visitor can become a guest: the messenger on the Messages page, the mini widget, the live chat button and the gate of a chat room. What it asks for is set at WP Admin → Better Messages → Settings → Guests, in the Sign-up Form section.
| Setting | What it does | Default |
|---|---|---|
| Display Name | Optional gives a guest who leaves the field empty a generated name such as "Lily Lynx". Required refuses an empty name. | Optional |
| Unique Guest Names | Every guest has to pick a display name nobody has used before. Turn it off to let visitors reuse a name that is already taken. | On |
| Email Address | Do not ask, Optional or Required. Only administrators see the email. An email that belongs to a registered member is refused, with a link to log in. | Do not ask |
| Confirm Before Chatting | A guest who gave an email sends no message until they open the link sent to it. | Off |
| Consent Checkbox | The text of a checkbox a guest must tick to sign up, links allowed. Empty shows no checkbox. The time a guest ticked it and the text they saw are kept. | Empty |
| Captcha on Sign-up | A guest passes the captcha of the site before signing up or asking for a sign-in link. | Off |
The form applies wherever guests can join, chat rooms that admit guests while Guest Chat is off included.
Some ways in ask no question today: a chat room that joins visitors automatically, or a button that opens a conversation in one click. They stay silent while the form asks for nothing. Once the form asks for something a visitor has to give (a required name or email, the consent, a captcha), the form opens there too.
Guest emails#
An email a guest types is only their word for it. Nothing is sent to it but one message: the request to confirm it.
- The confirmation. A guest who gives an email gets a link that works once, for 24 hours. Until they open it, the profile says Not confirmed yet and offers Send the link again.
- After it. A confirmed guest gets the unread message emails members get, each with a link to stop them, and a switch Email me about unread messages in their settings.
- Confirm Before Chatting. With this setting on, a guest with an unconfirmed email reads everything they could read before, and the reply form waits for the link: in its place the guest is told to open the link sent to the email. This shows the moment they sign up. Once the link is opened, the reply form comes back in every open tab, with no reload.
- One guest per email. The link of a second guest for an email already confirmed signs that browser in as the first guest.
Coming back on another device#
A guest with a confirmed email is not tied to one browser. Sign in as a returning guest under the sign-up form asks for the email and sends a sign-in link.
- The answer is the same whatever the email is: "If this email belongs to a guest on this site, a sign-in link was sent to it." Nobody can use the form to find out who chatted on the site.
- The link works once, for 30 minutes, and opens the messenger signed in as that guest, with their conversations.
- The captcha of the site is asked here too while Captcha on Sign-up is on.
The guest banner#
A band over the composer tells a guest who they are chatting as, and holds the two ways to an account: Login and Register. The left side of the band, with the photo and the name, opens the profile of the guest.
In a narrow place such as a mini chat the band keeps the photo and the name and shows a pencil in the place of the words.
Settings of a guest#
A guest has the same Settings screen a member has. It opens from the settings button at the foot of the conversation list. A visitor who has not signed up yet has no settings button, as there is nothing to set before there is a guest.
- Profile. The photo and the name of the guest, the email they gave with Confirmed or Not confirmed yet beside it, and Edit, which opens the profile.
- The options that apply to a guest, each shown where the site allows it for members too: how to send on desktop (Enter or Shift+Enter), the popup of a new message, the sounds, the call reminders, end-to-end encryption and the storage on the device.
- Email notifications. A guest with a confirmed email has the switch Email me about unread messages.
- Sign out, at the foot of the screen.
A guest is not offered what only works for an account: who may start a conversation with them, browser push notifications, the list of blocked users and the devices of the mobile app.
The choices of a guest are saved on the site and follow the guest to another browser.
The profile#
Edit opens the profile of the guest. So does the band over the composer.
- The card at the top shows the guest as everyone else sees them: the photo, the name, and the email once there is one. A guest with no photo sees the same picture the conversations show for them.
- Display Name. A guest can change the name at any time.
- Email, where the form asks for one, with its state: Confirmed, or Not confirmed yet with Send the link again. The state is asked of the site each time the dialog opens, so an email confirmed a moment ago in another tab reads as confirmed.
Sign out#
Sign out makes the browser forget the guest. The guest and their conversations stay on the site.
- A guest with a confirmed email comes back with a sign-in link sent to that email. The screen names the email before they sign out.
- A guest without one is told that signing out leaves no way to open the conversations again, and has to confirm that.
- After signing out, the next person to sign up in that browser is a new guest. They never get the conversations of the one who left.
Guest photos#
Turn Guests Can Add a Photo on at Settings → Guests → Guest Photos to let guests add a photo. It is off by default.
- Add a photo opens the file picker of the device. Take a photo opens the camera, where the device has one. A device with more than one camera lists them by name under the picture, and the camera chosen is the one the next photo starts with. A phone also keeps the switch between its front and back cameras.
- The picture then opens in the image editor: drag and zoom to choose the part to keep, straighten or rotate it, flip it, and press Use this photo. It is the same editor the composer opens on a picture before it is sent.
- The bin beside the two buttons removes the photo.
- The photo is kept with the visitor all WordPlus plugins of the site share, so another WordPlus plugin can show the same face.
An administrator removes the photo of a guest from the Guest Info popup in Administration → Guests.
From guest to member#
A guest who registers or logs in, in the browser they chatted in as a guest, is asked once what to do with what they did as a guest.
- Move to my account. Every conversation, message, reaction, file and chat room membership of the guest moves to the account. Where the guest and the account were in the same conversation, the place of the account stays and the messages of the guest join it. The guest is then deleted.
- Forget the guest. The guest is deleted, with its photo, email and addresses. The messages stay in their conversations under "Deleted Guest".
- Not now closes the question. It is not asked again in that browser.
In the browser the guest used, the question comes by itself. In any other browser it comes by the email: a member whose account email is the email a guest confirmed is asked the same question, without the count of conversations. Since an email alone proves nothing, the answer there first sends a link to that email. Opening the link while logged in to the account opens the question again, and that answer counts. The link works once, for 24 hours.
The question is on by default. Turn Offer to Move Conversations off at Settings → Guests → Guest to Member to ask nobody. Blocks and bans follow the person either way.
Administration → Guests#
Navigate to WP Admin → Better Messages → Administration → Guests for every guest of the site, newest first.
- Email shows the email a guest gave and its state: confirmed, not confirmed or from a booking.
- Location and Last address come from the address a guest connects from. The database that names the country and the city, and how long addresses are kept, are set at Settings → Integrations → Locations.
- Inactive for more than narrows the list to guests who were not active for 7, 30, 90, 180 or 365 days. Delete all matching then deletes them all, with a count of how many there are and a way to stop.
Press a row to open Guest Info: the consent the guest gave, the photo with Remove photo, and every address the guest was seen on with its place, its dates and who else was seen on the same address.
In a one-to-one conversation with a guest, an administrator also sees a Details block in the info panel of the messenger: the location, the last address, the email with its state and the date the guest signed up. Only administrators see it.
Cleanup of inactive guests#
A busy public site collects guests who chatted once and never came back. Settings → Guests → Cleanup deletes them without anyone having to.
- Delete Inactive Guests — the number of days. Guests who signed up and were not active for that long are deleted once a day. 0 never deletes.
- Also Delete Guests With a Confirmed Email — turn it off to keep the guests who confirmed their email, who may be your leads.
- Guests of bookings are never deleted by the cleanup.
The messages of a deleted guest stay in their conversations under "Deleted Guest".
Guests shared across WordPlus plugins#
Since Better Messages 3.2 a guest gets their id from the visitors that every WordPlus plugin on the site shares, such as Live Support. A site that runs more than one WordPlus plugin with guests gets:
- One visitor per browser. A visitor who first chatted through another WordPlus plugin and then joins a chat room is the same visitor to both, not two.
- No shared ids. Two visitors never get the same id, so the guest of one plugin never takes the presence, conversations or keys of another person in another plugin.
- Existing guests unchanged. The guests a site already has keep their ids and conversations. After the update, a background task moves them into the shared visitors, a few thousand at a time, with nothing to do for the administrator.
The browser keeps the shared visitor in its localStorage under wordplus-visitor, next to the
own record of the guest, and sends it when a guest registers. Forgetting the guest (the guest clears
their site data, for example) forgets it too.
New guest ids are large numbers, from 1,000,000,000 up, and the user id of a guest stays negative in
Better Messages as before (-1 * id). Do not assume guest ids are small or consecutive. A site that goes back to an
older version numbers its new guests from 2,000,000,000, so they never land on an id the shared
visitors already gave out.
When to use guest chat#
| Use case | Pattern |
|---|---|
| Public help or live support chat room | Open guest access on the support room, ask for an email so the answer reaches a guest who left |
| Event-day live chat | A guest room for the time of a conference or a launch, with a captcha on sign-up |
| Marketplace pre-purchase questions | A guest channel before the sale, an account to complete the purchase, and the move of the conversation to it |
| Open community board | A "Lobby" guest room visible to all, then members-only rooms behind login, listed for guests with Show to guests |
| Public testimonials and Q&A | Guests ask, administrators and verified members answer |
How to enable#
For the whole site — navigate to WP Admin → Better Messages → Settings → General.
- Guest Chat — lets visitors who are not logged in use the messenger as guests
- Redirect Guests to Login — shown while Guest Chat is off: sends visitors who are not logged in to the login page instead of showing the login form on the Messages page
The sign-up form with Unique Guest Names, guest photos, the move to an account and the cleanup are at Settings → Guests.
For one chat room — edit a chat room at WP Admin → Better Messages → Chat Rooms.
- Turn Allow guests on and add the bm-guest role under Can Join to admit guests to that room. A room set this way takes guests even while Guest Chat is off for the site
- Show to guests (under Role Based Access, offered while Allow guests is off) — list a room guests cannot enter in their Chat Rooms list anyway. It shows Log in where a room they can join shows Join, and opening it shows the Not Authorized Message of the room with the Login button, plus Register when the site allows sign-ups. Nothing of the room opens until they log in.
Show to guests is available since Better Messages 3.0.12.
Guest Messages Page#
The Messages Location setting picks where the messenger renders. Anything except a regular WordPress page is a location inside a part of the site that needs a login: WooCommerce My Account, the profile tabs of BuddyPress, BuddyBoss, Ultimate Member, FluentCommunity, UsersWP, ProfileGrid and WP User Manager, the account pages of LearnPress, Tutor LMS and MasterStudy, the dashboards of Houzez, RealHomes, Directorist, Classified Listings and Motors, the Asgaros Forum profile, the SureDash Portal. Without a separate way in, a guest who presses a chat trigger (a Live Chat button, a link from an email) lands on a page they cannot open and is sent to the login.
When the Messages Location is not a regular WordPress page and Guest Chat is on, a second picker appears: Guest Messages Page. Pick a regular public WordPress page, or create one with one click. Guests reach that page from every chat trigger and notification link. Logged-in users keep the inbox inside the integration as before, and the Guest Messages Page shows the messenger for them too, so the page is safe to share publicly.
The picker is hidden when the Messages Location is already a regular WordPress page. Guests use the same page as logged-in users and no second page is needed.
Better_Messages()->functions->get_link() returns the Guest Messages Page URL for visitors who are not logged in when the setting is configured, otherwise the WordPress login URL.
Frequently asked questions#
Can guests chat without an account?#
Yes, that is what guest chat is for. With Guest Chat on, a visitor who is not logged in fills in a small sign-up form and then chats without creating an account or logging in, in chat rooms that admit guests and in private conversations. See How to enable.
Can guests choose their own display name?#
Yes. The sign-up form asks for a name, and a guest can change it at any time in their profile. With Display Name set to Optional, a guest who leaves the field empty gets a generated two-word name such as "Lily Lynx". Rooms that join visitors automatically register the guest without a form while the form asks for nothing, so the name is generated there as well.
Can two guests use the same display name?#
Not by default. A name a guest types is checked against every guest the site has ever registered, and one already in use is refused in the form. On a busy public site, such as a shop with an AI chat bot or a support room open to everyone, common first names get claimed quickly, and later visitors are turned away for picking an ordinary name.
Turn Unique Guest Names off at WP Admin → Better Messages → Settings → Guests to drop the check. Guests can then use any name, taken or not. Generated names stay unique either way, so guests who never type a name are still told apart.
Reusing a name is safe: it changes only what other people read. Every guest keeps their own row in the bm_guests table and their own negative user ID, so two visitors both called "Anna" never share an identity, a session or a conversation.
Can I control what the generated names look like?#
Yes. The generated name passes through the better_messages_generated_guest_name filter. This snippet replaces the two-word names with a numbered pattern (Guest-1, Guest-2, …). Change $prefix to anything you like:
add_filter( 'better_messages_generated_guest_name', function () {
global $wpdb;
$prefix = 'Guest-';
$table = bm_get_table( 'guests' );
$like = $wpdb->esc_like( $prefix ) . '%';
$start = strlen( $prefix ) + 1;
$last = (int) $wpdb->get_var( $wpdb->prepare(
"SELECT MAX( CAST( SUBSTRING( name, %d ) AS UNSIGNED ) ) FROM `{$table}` WHERE name LIKE %s",
$start, $like
) );
return $prefix . ( $last + 1 );
} );
The filter only runs when a name is generated. Guests who typed their own name, or changed it in their profile, keep it.
A guest with a generated name appeared. Where did it come from?#
Only Better Messages creates guests, and only for a visitor who is not logged in to WordPress. A guest with a generated two-word name was created without typing a name, which happens in three cases:
- A visitor who is not logged in opened a page with a chat room that has Auto join users, Allow guests and the bm-guest role under Can Join. The guest is created as the page loads, without a click.
- A visitor who is not logged in pressed Join in a room that allows guests.
- A visitor left the Display Name field of the sign-up form empty while it is Optional.
Every browser keeps its own guest identity, so a private window, another browser, or a browser whose site data was cleared becomes a new guest, even for someone who is logged in elsewhere. A password on the whole site does not stop it for anyone who knows the password: WordPress still sees a visitor who is not logged in. Administration → Guests shows the address and the time the guest signed up, which usually tells whose browser it was.
To stop new guests in a room, take bm-guest out of its Can Join, or turn Allow guests off for it.
How does the plugin prevent guest abuse and spam?#
- A captcha on the sign-up form, from seven providers
- A required email, and Confirm Before Chatting, so a guest has to own an inbox before the first message
- Rate limits for new conversations and replies apply to the Guest role (set them at Settings → Moderation → Rules, Settings → Restrictions before 3.3.0)
- The bad words filter applies to guests
- Pre-moderation can hold guest messages for review
- AI moderation can flag or block harmful guest messages
- Administrators delete a guest, or every inactive guest at once, in Administration → Guests
Are guest conversations stored permanently?#
Yes. Guest messages are stored like any other message, and the auto-delete settings apply to them too. The guests themselves can be cleaned up after a number of days without activity.
Can guests join voice and video calls?#
Yes. If the room has calls enabled, guests can join. They count among the people in the call like members do.
Does GDPR apply to guest users?#
Yes. For a guest the site stores the display name, the email and photo if the guest gave them, the time they accepted the consent text and the text itself, and the addresses they connected from. The secret that signs a guest in is kept by the site and by the browser of the guest. A guest who is deleted, by an administrator, by the cleanup or by Forget the guest, loses the photo, the email and the addresses, and their messages stay under "Deleted Guest". See the Privacy & GDPR page for the full picture.
See also#
- Captcha — the captcha of the sign-up form and its providers
- Profile name and photo — the same dialog for members
- Chat rooms — rooms that admit guests
- Privacy & GDPR — what is stored about guests
- Guest chat blog post — a tour of the feature
- Pre-moderation — review guest messages before delivery
- Bad words filter — block words on the server
- Export transcripts — guests appear in transcripts under the names they chose











