JotCast Live Chats

Description

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:

  • Zero-click SSO — WordPress users are automatically authenticated in JotCast chats with no additional steps.
  • Chat visibility control — Restrict who can see chats on your site based on WordPress role: everyone, logged-in users only, subscribers and above, or administrators only.
  • Membership gating — Use the 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.
  • Secure token exchange — SSO keys are exchanged server-to-server using short-lived, single-use authorization codes. Your encryption key never touches the browser.
  • AES-256-CBC encryption — User data is encrypted before being passed to JotCast, ensuring secure transmission.

How it works:

  1. Install and activate the plugin.
  2. Go to Settings JotCast Live Chats and click “Connect to JotCast.”
  3. Authorize the connection with your JotCast account.
  4. That’s it. Your existing JotCast chat embeds will automatically log in your WordPress users.

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:

  • A JotCast account (sign up at jotcast.com)
  • One or more JotCast chat embeds on your WordPress site
  • PHP 7.4 or higher with the OpenSSL extension

External services

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.

Screenshots

  • The JotCast Live Chats settings page showing a connected account and chat visibility options.
  • A JotCast chat embedded on a WordPress post with a user automatically signed in via SSO.

Installation

  1. Upload the jotcast-live-chats folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Go to Settings JotCast Live Chats.
  4. Click “Connect to JotCast” and authorize the connection with your JotCast account.
  5. Once connected, configure the Chat Visibility setting to control who can see chats on your site.

FAQ

Do my users need a JotCast account?

No. Users are authenticated through WordPress — they don’t need to create a separate JotCast account. Their WordPress display name is used in the chat.

Does this work with membership plugins?

Yes. The plugin provides a jotcast_user_is_member filter hook that you can use to integrate with any membership plugin, including Groups, MemberPress, Paid Memberships Pro, WooCommerce Memberships, or your own custom membership system.

What happens if a user is not logged into WordPress?

It depends on your Chat Visibility setting. If set to “Everyone,” non-logged-in users will see the chat in guest mode. If set to any other option, the chat embed will be replaced with a message indicating that the chat is available to members only.

Is the SSO connection secure?

Yes. User data is encrypted using AES-256-CBC before being transmitted. The encryption key is exchanged between WordPress and JotCast using a secure, server-to-server token exchange with short-lived, single-use authorization codes.

Can I restrict specific chats to paying members?

Yes. Define your membership criteria using the jotcast_user_is_member filter hook, then enable “Members Only” on individual chats in the JotCast chat creation form.

Does this work with WordPress Multisite?

The plugin can be activated on individual sites within a Multisite network. The SSO connection is shared across all sites in the network — you only need to connect once. Chat visibility settings can be configured independently on each site.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“JotCast Live Chats” is open source software. The following people have contributed to this plugin.

Contributors

Translate “JotCast Live Chats” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.0

  • Initial release.
  • Zero-click SSO for WordPress users.
  • Chat visibility control based on WordPress role.
  • Membership gating via jotcast_user_is_member filter hook.
  • Secure server-to-server key exchange.
  • AES-256-CBC encrypted SSO tokens.
  • Responsive mobile embed support.
  • WordPress Multisite support.