JotCast Live Chats connects your WordPress site to JotCast live chat, enabling zero-click single sign-on for your users. When a logged-in WordPress user visits a page with a JotCast chat embed, they are automatically signed in using their WordPress display name. No extra accounts, no login buttons, no redirects.
Features:
jotcast_user_is_member filter hook to define your own membership criteria. Works with any membership plugin including Groups, MemberPress, Paid Memberships Pro, WooCommerce Memberships, and custom solutions.How it works:
Membership gating with custom filters:
If you want to restrict certain JotCast chats to paying members, you can define your own membership logic using the jotcast_user_is_member filter. Add this to your theme’s functions.php or a custom plugin:
add_filter('jotcast_user_is_member', function($is_member, $user) {
// Your custom membership check here
// Return true if the user is a paying member, false otherwise
return $is_member;
}, 10, 2);
The result is included in the SSO token, and you can mark individual chats as “Members Only” in JotCast’s chat creation form.
Requirements:
This plugin connects to the JotCast service (https://www.jotcast.com) to provide live chat functionality with automatic single sign-on for your WordPress users.
When the plugin is first connected:
A one-time server-to-server request is made to JotCast to exchange a short-lived authorization code for an SSO encryption key. Your site URL and site name are sent during this process.
On every page load that contains a JotCast chat embed:
The plugin encrypts the logged-in user’s display name, email address, profile picture URL, and membership status using AES-256-CBC, and appends the encrypted token to the JotCast embed script URL. This data is sent to JotCast so the user can be automatically signed into the chat. No data is sent for users who are not logged in.