=== StartWeb Chat Button & Messaging Badge ===
Contributors: startwebagency
Tags: chat, messaging, badge, floating button, customer support
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.6.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add a customizable floating chat button with messaging badge, online/offline status, working hours, holidays and special days.

== Description ==

StartWeb Chat Button & Messaging Badge adds a floating contact button to your WordPress website, with support for WhatsApp messaging links.

Main features:

* Floating chat button and messaging badge.
* Custom phone number, texts, colors, position and icon.
* Online/offline status based on the WordPress timezone.
* Working hours with morning and afternoon ranges.
* Holidays and vacation period support.
* Special days with custom hours or forced offline status.
* REST-based status refresh to reduce cache issues.
* Shortcode support: `[swcbmb_chat_badge]`.

The plugin is designed for small businesses, agencies, professionals and websites that want a simple WhatsApp contact badge with a more realistic availability status.

Developed by Start Web: https://www.startwebagency.it/

This plugin is not affiliated with, endorsed by, or sponsored by WhatsApp or Meta.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/startweb-chat-badge` directory, or install the plugin through the WordPress plugins screen.
2. Activate the plugin through the Plugins screen in WordPress.
3. Go to Settings > StartWeb Chat Button & Messaging Badge and configure your phone number, texts, colors and working hours.

== Frequently Asked Questions ==

= Can I use the badge with a shortcode? =

Yes. Use `[swcbmb_chat_badge]` anywhere shortcodes are supported.

= Does it work with cache plugins? =

The badge status is refreshed through a REST endpoint with no-cache headers. This helps keep the online/offline status updated even when pages are cached.

= Can I hide the badge on mobile? =

Yes. There is an option in the settings page to hide the badge on mobile devices.

== Screenshots ==

1. Floating chat button and messaging badge.
2. Settings page.

== Changelog ==

= 1.6.1 =
* Fixed admin JavaScript loading through WordPress enqueue functions.
* Improved POST data sanitization and validation.

= 1.6.0 =
* Renamed plugin to StartWeb Chat Button & Messaging Badge.
* Updated author branding to Start Web.
* Repository-ready cleanup.
* Added WordPress.org readme.
* Added uninstall cleanup.
* Improved sanitization and escaping.
* Removed public debug status parameter.
* Added neutral default values.
* Improved internationalization readiness.
* Removed jQuery dependency from frontend scripts.

== Upgrade Notice ==

= 1.6.0 =
This version improves sanitization, escaping and packaging quality. Review the settings after upgrading because default values have been made more neutral.
