=== Online Media Direct WhatsApp Live Chat ===
Contributors: onlinemediadirect
Donate link: https://www.onlinemediadirect.co.uk/
Tags: whatsapp, live chat, click to chat, floating button, support
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add a WhatsApp floating chat button or agent panel, plus optional WooCommerce product button and shortcodes.

== Description ==

Online Media Direct WhatsApp Live Chat lets visitors start a WhatsApp chat from your website.

Features:

* Floating WhatsApp button (bottom-left or bottom-right)
* Panel mode (agent list with online/offline status) or Direct mode (open WhatsApp immediately)
* Multiple agents (name, title, avatar, schedule)
* Prefilled message templates with {page_title} and {page_url}
* Show/hide on selected pages (include/exclude IDs) and device toggles
* Shortcodes: [omd_whatsapp_button] (alias: [omd_whatsapp_chat])
* Optional WooCommerce product button after Add to Cart
* Optional dataLayer click events for GTM/GA4 (no tracking code added)

Privacy:

* This plugin does not add any tracking scripts.
* If dataLayer events are enabled, it only pushes an event on click.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install via Plugins → Add New.
2. Activate the plugin.
3. Go to Settings → WhatsApp Live Chat and configure your agents.

== Frequently Asked Questions ==

= How do I add the button inside content? =

Use the shortcode:

`[omd_whatsapp_button]`

Optional attributes:

* `agent` (index, starting at 0)
* `label` (button label)

Example:

`[omd_whatsapp_button agent="0" label="Chat to support"]`

= Does it work with WhatsApp groups? =

Yes. You can paste a group invite URL into the “Number or Group URL” field.

== Screenshots ==

1. Settings page
2. Floating button
3. Agent panel

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
