| 开发者 | softglaze |
|---|---|
| 更新时间 | 2026年8月6日 01:25 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
sgwa_click event to the data layer. It is off unless you turn it on, because that is the one thing the plugin can do that hands a visitor's action to someone else. The plugin never loads Google's script itself.
When nobody is on shift, the panel can offer a short form instead — name, phone number, message and a consent checkbox whose wording you write. Submissions are stored in your own database, listed on the Contacts screen, and emailed to you with a link that opens WhatsApp ready to reply, so an enquiry that arrives at midnight is still there in the morning.
WhatsApp QR code generator
The Tools screen builds a click to chat link from any number and message, or from an agent you have already added, and turns it into a QR code you can download as a PNG at the size you need. Print it for a shop window, a menu, a receipt or a business card, and a phone camera opens the chat. The QR code is drawn in your browser; nothing is uploaded anywhere to produce it.
Buttons inside your posts and pages
As well as the floating button, you can place a button in your content three ways: the [sgwa_chat] shortcode, the "WhatsApp Chat Button" block in the editor, and an Elementor widget if you use Elementor. Each one takes an agent, its own wording and a solid or outline treatment:
[sgwa_chat agent="2" text="Ask about this course" style="primary" align="left"]
Compliance and privacy
The plugin uses nothing but public wa.me links, which is what WhatsApp publishes them for. It does not use any unofficial WhatsApp API or automation library, because those get the number they are used with banned.
There are no SoftGlaze servers. The plugin makes no external HTTP requests of any kind: no telemetry, no analytics call-home, no licence check, no update check, no remote fonts and no CDN. Everything it records lives in your own database.
It adds a section to your site's suggested privacy policy text explaining what is stored, and captured contacts are included in WordPress's own personal data export and erase tools. The lead form has a consent checkbox you write yourself. A "remove all data when the plugin is deleted" setting on the System Check screen, off by default, clears the options, tables and scheduled job on uninstall.
Third-party code
The QR code generator bundles qrcode-generator 2.0.4 by Kazuhiko Arase, used under the MIT licence. It is vendored unmodified at lib/qrcode-generator/ with its licence text beside it, it runs entirely in the browser, and it makes no network requests.
For developers
Everything the front end decides can be filtered:
sgwa_should_display — whether a campaign renders on this request. Passed the decision, the campaign and the device bucket.sgwa_agents — the agents available to the current request.sgwa_campaigns — the active campaigns, in priority order.sgwa_message_template — the message template before its variables are resolved.sgwa_message_vars — the variables a template can use, so you can add your own.sgwa_click_logged — fires after a click is written to the log, with the stored row.sgwa_lead_captured — fires after a lead is stored, with the contact id and the lead.{page_title}, {page_url}, {site_name}, {product_name}, {product_price}, {product_sku}, {cart_total} and {order_id}.
The plugin also ships a small add-on contract — sgwa_register_modules plus filters on the admin tabs, dashboard cards and REST routes — so a separate add-on can extend it without patching it. Nothing in this plugin registers a module; the contract is there for add-ons to use.
The free version
The free version is complete — everything on this page works forever, free. SoftGlaze Chat Pro is a separate product that adds a WhatsApp team inbox, operators, automations and AI on top.
There is no licence check, no expiry, no locked button and no upgrade prompt in your admin.
What's next
Two other SoftGlaze plugins are in the directory, built to the same rules — everything on your own server, no external calls:
softglaze-click-to-chat folder to /wp-content/plugins/ and activate it from the Plugins screen.447700900123.No. This plugin uses public wa.me click to chat links, which need nothing beyond a working WhatsApp number. There is no API application, no access token and no per-message cost.
No. WooCommerce features appear only if WooCommerce is active. Without it the plugin is a WhatsApp chat widget for WordPress and nothing about the shop features is loaded.
Yes, as many as you like. Add one agent per number. Visitors either pick from the list or are routed automatically depending on the setting you choose.
The full international number with the country code first and nothing else: no plus sign, no spaces, no brackets, no dashes. 447700900123, not +44 7700 900123.
In your own WordPress database, in your site's own tables. Nothing is sent to us or to any third party, and the plugin makes no external HTTP requests at all.
Yes. Who is on shift and who a visitor is routed to are worked out on your server before the page is sent, and anything that depends on screen size is decided in the browser rather than baked into cached HTML. The message form requests a fresh security token when it is submitted, so it keeps working on a page that has been sitting in a cache.
Three things to check. First, the Campaigns screen, in case a display rule is excluding the page you are looking at. Second, the agent's working hours: if everybody is off shift and you chose "hide them until they are back", the button hides too, which is deliberate so nobody taps into silence. Third, your page cache, which may still be serving a copy of the page from before you saved.
Yes. On a phone the link opens the WhatsApp app; on a computer it opens WhatsApp Web or the desktop app.
Yes. Use the [sgwa_chat] shortcode, the "WhatsApp Chat Button" block, or the Elementor widget. The Tools screen shows you the shortcode with your own agents filled in.
It loads one small stylesheet and one deferred script, together under 10KB compressed, and only on pages where the button actually renders. There is no jQuery dependency and no external request to wait on. If a visitor has JavaScript switched off they still get a working link.
Yes. Every string is translatable and the plugin ships a POT file. Right-to-left languages get their own stylesheet.
Yes. There is a "remove all data when the plugin is deleted" setting on the System Check screen, off by default. Turn it on before deleting the plugin and the options, tables and scheduled task are all removed. Leave it off and your agents, settings and captured leads survive a reinstall.
A separate add-on plugin, SoftGlaze Chat Pro, is planned. It will add a WhatsApp team inbox using the official Meta Cloud API with your own credentials. Everything described on this page stays in the free plugin.
[sgwa_chat] shortcode, a WhatsApp Chat Button block and an Elementor widget for buttons inside your content.