=== DPMLA Zero Bloat Chat Button ===
Contributors: deepakchaudharydpmla
Tags: whatsapp, chat button, click to chat, floating button
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 7.1
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add a floating WhatsApp link with a preset message. No frontend JavaScript, tracking, external assets or API key.

== Description ==

DPMLA Zero Bloat Chat Button adds one floating link in the bottom-right corner of your website. Visitors can open WhatsApp to the phone number you configure, optionally with a preset message they can edit before sending.

The plugin has two settings: an international WhatsApp phone number and an optional message. It uses an original inline chat bubble SVG and a small inline stylesheet registered through the WordPress enqueue API. It loads no frontend JavaScript, icon libraries, remote fonts or separate stylesheet files.

This is a click-to-chat link, not an embedded chat inbox, chatbot or messaging automation service. Visitors need access to WhatsApp to use it.

= Plugin homepage and support =

Plugin homepage: https://deepakchaudhary.dev/plugins/dpmla-zero-bloat-chat-button/

Developed and maintained by Deepak Chaudhary, the developer behind DPMLA. DPMLA is the author's own project brand. Author website: https://deepakchaudhary.dev/

For setup help or a bug report, email mail@deepakchaudhary.dev with the plugin version, your WordPress and PHP versions, and the steps needed to reproduce the problem. Do not send passwords, API keys or customer conversations.

= Features =

* One floating button on public website pages.
* International phone-number validation and an optional preset message.
* No button or plugin CSS until a valid phone number is configured.
* Keyboard focus styling, a screen-reader label and reduced-motion support.
* Responsive sizing and safe-area spacing on supported mobile browsers.
* Translatable settings and button label.
* No frontend JavaScript, analytics, cookies, remote assets or API credentials.

= External service: WhatsApp =

The button links to https://wa.me/, a WhatsApp click-to-chat service operated by WhatsApp. It opens when a visitor clicks the button and includes the configured phone number and, if provided, the preset message in the URL. The visitor's browser connects to WhatsApp at that point. The visitor must choose to send the message in WhatsApp; the plugin does not send it automatically.

The plugin does not contact WhatsApp or DPMLA when a page loads, and it does not record visitor clicks or conversations. The configured phone number and preset message are public in the button URL. Do not put sensitive information in the preset message.

WhatsApp terms: https://www.whatsapp.com/legal/terms-of-service/
WhatsApp privacy policy: https://www.whatsapp.com/legal/privacy-policy/

WhatsApp is a trademark of its respective owner. This plugin is developed by DPMLA and is not affiliated with or endorsed by WhatsApp or Meta.

== Installation ==

1. In WordPress, open Plugins > Add New Plugin > Upload Plugin.
2. Choose dpmla-zero-bloat-chat-button.zip, click Install Now, then Activate Plugin.
3. Open Settings > DPMLA Chat Button.
4. Enter the WhatsApp phone number with country code, for example 919876543210. Use 7 to 15 digits and no leading zero. A leading +, spaces, parentheses, dots and hyphens are accepted and removed when saving.
5. Optionally enter a preset message, then click Save Changes.
6. Open a public page and click the button to check the destination. If you use page caching, clear it after changing these settings.

Alternatively, extract the ZIP and upload its dpmla-zero-bloat-chat-button folder to /wp-content/plugins/, then activate it in WordPress.

== Frequently Asked Questions ==

= Where do I configure the button? =

Open Settings > DPMLA Chat Button. Only users with the manage_options capability, normally administrators, can change these settings.

= How do I hide the button? =

Clear the phone-number field and save. The plugin then outputs neither its button nor its stylesheet.

= What happens if I enter an invalid phone number? =

The settings screen shows an error and keeps the previous valid number. The plugin checks the number's format; it cannot confirm that the number has a WhatsApp account.

= Why is the button missing? =

Check that you saved a valid international phone number, clear your page cache, and use a theme that calls the standard wp_head() and wp_footer() functions. The button is intentionally omitted from admin screens, feeds and embedded posts.

= Does it require an API key or paid account? =

No API key or DPMLA account is required. It creates a WhatsApp link; it does not use the WhatsApp Business API.

= Does it send messages automatically? =

No. Visitors review and send messages themselves in WhatsApp.

= Does it load any extra files on the frontend? =

The plugin adds a small amount of HTML, inline CSS and an original inline SVG. It does not enqueue JavaScript or load separate CSS, fonts, images or remote libraries. This does not guarantee any particular page-speed score.

= Can I upgrade from Floating Chat Button - Zero Bloat by DPMLA? =

Yes. Deactivate the old plugin before activating this renamed version to avoid displaying two buttons. The existing phone number and message are reused because their saved option names have been retained. No settings are deleted when either version is deactivated.

= What happens when I delete the plugin? =

The two settings remain in the WordPress options table so that reinstalling can restore them. If you want to remove them manually, their names are dpmla_fcb_number and dpmla_fcb_message.

== Changelog ==

= 1.0.2 =

* Add the plugin homepage and support details.
* Align the author website with the developer's domain and clarify the DPMLA brand relationship.

= 1.0.1 =

* Rename the plugin to DPMLA Zero Bloat Chat Button and align its slug and text domain.
* Register and enqueue inline CSS with the WordPress styles API.
* Validate international phone numbers and escape settings and link output.
* Translate interface strings and improve keyboard and screen-reader accessibility.
* Replace the original icon with an original chat bubble SVG.
* Explain setup, external service use, privacy and existing-setting compatibility.
* Remove keyword stuffing and unsupported performance claims.

= 1.0.0 =

* Initial floating chat button with phone-number and preset-message settings.

== Upgrade Notice ==

= 1.0.2 =

Adds the plugin homepage, developer details and support contact. Existing settings and button behavior are unchanged.

= 1.0.1 =

Renamed plugin with WordPress-enqueued styles, validated settings and clearer documentation. Deactivate the previous plugin before activating this version.
