Description
A contact button whose behaviour follows your opening hours, so it never invites someone to chat while nobody is there to answer.
You set your week once. The plugin works out, in the visitor’s browser, whether you are open right now – which means a page cache can never serve a stale “we are open”. Outside your hours you choose what happens: say when you are back (“We are back tomorrow at 08:30”, worked out from your own schedule), let people write anyway for you to answer later, or hide the button entirely until you open.
It handles the awkward cases as well: a kitchen that closes at 01:00, a day that runs 24 hours, a Saturday with different hours, a two-week holiday, and the Dutch public holidays in one click.
Around that: a panel on your own site before the visitor leaves for WhatsApp, a prepared message that can differ per page, a shortcode, and GA4 or Tag Manager events for the click that matters.
Nothing is loaded from a third party: no tracking script, no cookie, no API key and no account.
Features
- Floating button bottom-left or bottom-right, with your own colour, size, edge distance and optional label
- Chat panel with a name, subtitle, profile picture and typing animation
- A prepared message using the variables {SITE}, {TITLE} and {URL}
- A different message per page, or hide the button on that page
- Opening hours per day, including hours that run past midnight and 24-hour days
- Closed dates and date ranges, with one click to add the Dutch public holidays
- {NEXT_OPEN} in notices: “We are back tomorrow at 08:30”
- Three choices outside opening hours: show a notice, show a notice but still allow chatting, or hide the button
- Show on desktop, on mobile, or both
- Shortcode [wa_connect] for a button or a text link inside your content
- Google Analytics 4 or Google Tag Manager events, using the tag you already have on the site
- Export and import your settings, which saves time across several sites
- Accessible: keyboard, screen readers, Escape to close, and it respects “reduce motion”
External services
This plugin links visitors to WhatsApp, a service provided by WhatsApp Ireland Limited (Meta).
Nothing is sent anywhere while a visitor reads your page. The plugin loads no script, image or font from WhatsApp and makes no server-side request to it. A request only happens when the visitor themselves taps through: the browser then opens https://wa.me/<your number> with the prepared message in the URL, and from that point the visitor is on WhatsApp, under WhatsApp’s own terms.
What goes along in that link is your own phone number and the message text — which, if you use the variables, may contain the name of your site, the title of the page and its address.
- WhatsApp terms of service: https://www.whatsapp.com/legal/terms-of-service
- WhatsApp privacy policy: https://www.whatsapp.com/legal/privacy-policy
The analytics option sends its two events to the gtag or dataLayer object that is already on your site. This plugin adds no Google script of its own; if you have not installed Google Analytics or Tag Manager, no event leaves the browser.
Screenshots




Installation
- Upload the plugin through Plugins › Add New › Upload Plugin, or copy the folder to
/wp-content/plugins/. - Activate it.
- Open “WhatsApp Chat” in the admin menu and fill in your number in international format, for example 31612345678.
FAQ
-
Which number format should I use?
-
Country code plus number, with no plus sign, no spaces and no leading zero. 06 12 34 56 78 becomes 31612345678.
-
With the shortcode:
[wa_connect text="Request a quote" message="I would like a quote for {TITLE}"]Attributes:
text,message,phone,style="button|link",action="panel|chat"andclass. Withaction="panel"(the default) the chat panel opens, so your opening hours apply;action="chat"goes straight to WhatsApp.Your own link or button with
href="#wa-connect"opens the panel too. -
Which events are measured?
-
wa_connect_open when the panel opens (parameter
wa_connect_trigger: click, auto or api) andwa_connect_clickwhen the visitor goes on to WhatsApp. Under Advanced you choose between Google Tag Manager (dataLayer) and GA4 via gtag.js. -
How do I test the opening hours?
-
Add
?wac_debug=1to any URL on your site; the console then shows the current state, the next opening moment and the configuration. To simulate a moment in time, setwindow.__wacTestNow = '2026-12-25 10:00';before the plugin script loads (site time). -
Can I open the panel from my own code?
-
Yes:
WAConnect.open(),WAConnect.close(),WAConnect.toggle(),WAConnect.status()andWAConnect.nextOpen(). The DOM eventswaconnect:openandwaconnect:clickare also dispatched ondocument. -
Which hooks are there for developers?
-
wa_connect_show(bool): show the button on the current page or notwa_connect_frontend_config(array): the configuration that goes to the browserwa_connect_settings(array): the settings after loadingwa_connect_sanitize_settings(array): the settings just before savingwa_connect_capability(string): the capability needed for the admin screen (default manage_options)wa_connect_metabox_post_types(array): the post types that get the block in the editor
-
Are my settings deleted when I remove the plugin?
-
Only if you switch on “Delete data on uninstall” under Advanced. Deactivating never deletes anything.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“WebBreda Chat – Contact Button with Opening Hours” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “WebBreda Chat – Contact Button with Opening Hours” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
2.0.1
- Changed: the admin screen, menu and editor box now carry the plugin name, WebBreda Chat
2.0.0
- New: opening hours per day, including past midnight and 24-hour days
- New: closed date ranges and the Dutch public holidays in one click
- New: {NEXT_OPEN} in the notice shown outside opening hours
- New: the option to show a notice but still allow chatting
- New: a name, subtitle and profile picture in the panel header
- New: a label beside the button, an edge distance, and separate desktop/mobile visibility
- New: hide the button on a single page from the editor
- New: the shortcode [wa_connect] and href=”#wa-connect”
- New: export, import and restore defaults
- New: a choice between Google Tag Manager and gtag.js, with separate events for opening and clicking through
- New: a JavaScript API (WAConnect.open() and so on) and hooks for developers
- New: a warning about unsaved changes, and saving with Ctrl/Cmd+S
- New: uninstall.php, which deletes data only if you asked it to
- Improved: accessibility; the button used to be invisible to screen readers
- Improved: the panel only opens by itself if the visitor can actually chat
- Improved: every string is translatable
- Fixed: bold was stripped from the WhatsApp message
- Fixed: the colour picker did not load
- Fixed: saving jumped back to the first tab
- Fixed: it was impossible to switch off every day
- Fixed: text in the panel was not escaped
- Fixed: the phone number was logged to the console on every page
- Fixed: wa_connect_click fired on automatic opening as well
- Settings from 1.x are migrated automatically
1.1.0
- Closed days, with their own notice
- Opening hours now follow the site’s timezone
- A status card in the dashboard showing whether you are open
- Fixed: active days were not shown as selected
1.0.0
- First release.
