=== Pingu Live Chat ===
Contributors: irusri, pinguteam
Tags: live chat, chat widget, customer support, chatbot, Pingu
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your WordPress site with Pingu to add a live chat widget — optimized for caching plugins and zero-code setup.

== Description ==

**Pingu Live Chat** is a reliable and seamless way to add a live chat widget to your WordPress site. Unlike standard copy-paste snippets, our plugin is specifically engineered to bypass aggressive caching and script optimization from popular plugins like **WP Rocket and FlyingPress**, ensuring your chat widget is always visible and functional for your customers.

= Key Features =
* **Modern Onboarding:** Register a new account or log in with existing credentials directly within the WordPress dashboard.
* **Smart Conflict Detection:** Automatically detects existing manual Pingu code snippets (from WPCode, Header/Footer plugins, or themes) and offers one-click cleanup to prevent duplicate widgets.
* **Advanced Caching Support:** Specialized technology ensures the chat widget remains clickable even when caching or optimization plugins add transparent layers or delay JavaScript execution.
* **Auto-Login Integration:** Seamlessly jump from WordPress to your Pingu SaaS dashboard without re-entering passwords.
* **Trial & Invite Ready:** Supports both Free Trial registration and Invite Key activation.

= How it works =
1. Install & activate the plugin.
2. Choose "Create Account" (for new users) or "Sign In".
3. Select your desired chat widget from the list.
4. If an old manual snippet is found, use the "Clean Up & Apply" feature for a perfect installation.
5. Your chat widget is live!

= External Service Disclosure =
This plugin connects to the Pingu API (https://api.pingu.chat) to authenticate users, manage registrations, and fetch widget configurations. The chat widget and assets are loaded from https://admin.pingu.chat/loader.js.

* Pingu Privacy Policy: https://pingu.chat/privacy-policy
* Pingu Terms of Service: https://pingu.chat/terms-of-use

== Installation ==

1. Upload the `pingu-live-chat` folder to the `/wp-content/plugins/` directory, or install via the WordPress Plugin menu.
2. Activate the plugin.
3. Navigate to **Pingu Chat** in your admin sidebar.
4. Follow the step-by-step onboarding to connect your widget.

== Frequently Asked Questions ==

= Does it work with WP Rocket and other caching plugins? =
Yes! We have implemented specialized JavaScript fixes to ensure Pingu Chat remains interactive even when these plugins optimize or delay page elements.

= What is Conflict Detection? =
If you previously pasted a Pingu code snippet manually into your theme or a snippet plugin like WPCode, our plugin will find it and offer to disable it automatically to prevent conflicts.

= Is it free? =
The plugin is free to install. You will need a Pingu account (Free Trial available) to use the service.

== Screenshots ==

1. **Welcome Screen:** Beautiful onboarding with Login and Register options.
2. **Easy Registration:** Register for a Free Trial or use an Invite Key directly from WordPress.
3. **Widget List:** Select from your existing Pingu widgets with a single click.
4. **Conflict Detection:** Smart detection of old manual snippets for a clean setup.
5. **Active Widget:** Manage your connected widget and jump to the SaaS dashboard easily.

== Changelog ==

= 1.0.0 =
* Initial official release.
* Added modern onboarding flow.
* Added Conflict Detection and Cleanup system.
* Added Auto-login to SaaS dashboard.
* Improved compatibility with popular caching plugins.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
