{"id":410319,"date":"2026-11-28T12:45:21","date_gmt":"2026-11-28T12:45:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/webbreda-chat-contact-button-with-opening-hours\/"},"modified":"2026-11-28T12:52:07","modified_gmt":"2026-11-28T12:52:07","slug":"webbreda-chat","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/webbreda-chat\/","author":23610484,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.0.1","stable_tag":"2.0.1","tested":"7.1.5","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"WebBreda Chat - Contact Button with Opening Hours","header_author":"WebBreda","header_description":"A contact button that knows your opening hours: per day, past midnight, closed dates. Links to WhatsApp. No subscription, no external scripts.","last_updated":"2026-11-28 12:52:07","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/webbreda.nl","rating":0,"author_block_rating":0,"active_installs":0,"downloads":27,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"2.0.0":{"tag":"2.0.0","author":"webbreda","date":"2026-11-28 12:44:51","revision":3831419},"2.0.1":{"tag":"2.0.1","author":"webbreda","date":"2026-11-28 12:52:07","revision":3831426}},"upgrade_notice":{"2.0.1":"<p>Small update: the admin screen now shows the plugin name. No settings change.<\/p>","2.0.0":"<p>A large update. Your settings are migrated automatically. Note that wa_connect_click now fires only when a visitor goes through to WhatsApp; for the panel opening there is wa_connect_open.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3831419,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3831419,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3831419,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3831419,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3831419,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0.0","2.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3831419,"resolution":"1","location":"assets","locale":"","width":1437,"height":703},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3831426,"resolution":"2","location":"assets","locale":"","width":1437,"height":703},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3831426,"resolution":"3","location":"assets","locale":"","width":1437,"height":703},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3831426,"resolution":"4","location":"assets","locale":"","width":1437,"height":703}},"screenshots":{"1":"The chat panel as a visitor sees it, with the prepared message.","2":"Opening hours per day, including days that run past midnight.","3":"Closed dates, with the Dutch public holidays added in one click.","4":"The appearance settings: colour, size, position and label."}},"plugin_section":[],"plugin_tags":[12431,60390,360,15082,3160],"plugin_category":[42],"plugin_contributors":[296132],"plugin_business_model":[],"class_list":["post-410319","plugin","type-plugin","status-publish","hentry","plugin_tags-business-hours","plugin_tags-click-to-chat","plugin_tags-contact","plugin_tags-opening-hours","plugin_tags-whatsapp","plugin_category-contact-forms","plugin_contributors-webbreda","plugin_committers-webbreda"],"banners":{"banner":"https:\/\/ps.w.org\/webbreda-chat\/assets\/banner-772x250.png?rev=3831419","banner_2x":"https:\/\/ps.w.org\/webbreda-chat\/assets\/banner-1544x500.png?rev=3831419","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/webbreda-chat\/assets\/icon.svg?rev=3831419","icon":"https:\/\/ps.w.org\/webbreda-chat\/assets\/icon.svg?rev=3831419","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/webbreda-chat\/assets\/screenshot-1.png?rev=3831419","caption":"The chat panel as a visitor sees it, with the prepared message."},{"src":"https:\/\/ps.w.org\/webbreda-chat\/assets\/screenshot-2.png?rev=3831426","caption":"Opening hours per day, including days that run past midnight."},{"src":"https:\/\/ps.w.org\/webbreda-chat\/assets\/screenshot-3.png?rev=3831426","caption":"Closed dates, with the Dutch public holidays added in one click."},{"src":"https:\/\/ps.w.org\/webbreda-chat\/assets\/screenshot-4.png?rev=3831426","caption":"The appearance settings: colour, size, position and label."}],"raw_content":"<!--section=description-->\n<p>A contact button whose behaviour follows your opening hours, so it never invites someone to chat while nobody is there to answer.<\/p>\n\n<p>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.<\/p>\n\n<p>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.<\/p>\n\n<p>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.<\/p>\n\n<p>Nothing is loaded from a third party: no tracking script, no cookie, no API key and no account.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Floating button bottom-left or bottom-right, with your own colour, size, edge distance and optional label<\/li>\n<li>Chat panel with a name, subtitle, profile picture and typing animation<\/li>\n<li>A prepared message using the variables {SITE}, {TITLE} and {URL}<\/li>\n<li>A different message per page, or hide the button on that page<\/li>\n<li>Opening hours per day, including hours that run past midnight and 24-hour days<\/li>\n<li>Closed dates and date ranges, with one click to add the Dutch public holidays<\/li>\n<li>{NEXT_OPEN} in notices: \"We are back tomorrow at 08:30\"<\/li>\n<li>Three choices outside opening hours: show a notice, show a notice but still allow chatting, or hide the button<\/li>\n<li>Show on desktop, on mobile, or both<\/li>\n<li>Shortcode [wa_connect] for a button or a text link inside your content<\/li>\n<li>Google Analytics 4 or Google Tag Manager events, using the tag you already have on the site<\/li>\n<li>Export and import your settings, which saves time across several sites<\/li>\n<li>Accessible: keyboard, screen readers, Escape to close, and it respects \"reduce motion\"<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>This plugin links visitors to WhatsApp, a service provided by WhatsApp Ireland Limited (Meta).<\/p>\n\n<p>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 <code>https:\/\/wa.me\/&lt;your number&gt;<\/code> with the prepared message in the URL, and from that point the visitor is on WhatsApp, under WhatsApp's own terms.<\/p>\n\n<p>What goes along in that link is your own phone number and the message text \u2014 which, if you use the variables, may contain the name of your site, the title of the page and its address.<\/p>\n\n<ul>\n<li>WhatsApp terms of service: https:\/\/www.whatsapp.com\/legal\/terms-of-service<\/li>\n<li>WhatsApp privacy policy: https:\/\/www.whatsapp.com\/legal\/privacy-policy<\/li>\n<\/ul>\n\n<p>The analytics option sends its two events to the <code>gtag<\/code> or <code>dataLayer<\/code> 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.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin through Plugins \u203a Add New \u203a Upload Plugin, or copy the folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate it.<\/li>\n<li>Open \"WhatsApp Chat\" in the admin menu and fill in your number in international format, for example 31612345678.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"which%20number%20format%20should%20i%20use%3F\"><h3>Which number format should I use?<\/h3><\/dt>\n<dd><p>Country code plus number, with no plus sign, no spaces and no leading zero. 06 12 34 56 78 becomes 31612345678.<\/p><\/dd>\n<dt id=\"how%20do%20i%20put%20a%20button%20inside%20a%20page%3F\"><h3>How do I put a button inside a page?<\/h3><\/dt>\n<dd><p>With the shortcode:<\/p>\n\n<pre><code>[wa_connect text=\"Request a quote\" message=\"I would like a quote for {TITLE}\"]\n<\/code><\/pre>\n\n<p>Attributes: <code>text<\/code>, <code>message<\/code>, <code>phone<\/code>, <code>style=\"button|link\"<\/code>, <code>action=\"panel|chat\"<\/code> and <code>class<\/code>. With <code>action=\"panel\"<\/code> (the default) the chat panel opens, so your opening hours apply; <code>action=\"chat\"<\/code> goes straight to WhatsApp.<\/p>\n\n<p>Your own link or button with <code>href=\"#wa-connect\"<\/code> opens the panel too.<\/p><\/dd>\n<dt id=\"which%20events%20are%20measured%3F\"><h3>Which events are measured?<\/h3><\/dt>\n<dd><p>wa_connect_open when the panel opens (parameter <code>wa_connect_trigger<\/code>: click, auto or api) and <code>wa_connect_click<\/code> when the visitor goes on to WhatsApp. Under Advanced you choose between Google Tag Manager (dataLayer) and GA4 via gtag.js.<\/p><\/dd>\n<dt id=\"how%20do%20i%20test%20the%20opening%20hours%3F\"><h3>How do I test the opening hours?<\/h3><\/dt>\n<dd><p>Add <code>?wac_debug=1<\/code> to 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, set <code>window.__wacTestNow = '2026-12-25 10:00';<\/code> before the plugin script loads (site time).<\/p><\/dd>\n<dt id=\"can%20i%20open%20the%20panel%20from%20my%20own%20code%3F\"><h3>Can I open the panel from my own code?<\/h3><\/dt>\n<dd><p>Yes: <code>WAConnect.open()<\/code>, <code>WAConnect.close()<\/code>, <code>WAConnect.toggle()<\/code>, <code>WAConnect.status()<\/code> and <code>WAConnect.nextOpen()<\/code>. The DOM events <code>waconnect:open<\/code> and <code>waconnect:click<\/code> are also dispatched on <code>document<\/code>.<\/p><\/dd>\n<dt id=\"which%20hooks%20are%20there%20for%20developers%3F\"><h3>Which hooks are there for developers?<\/h3><\/dt>\n<dd><ul>\n<li><code>wa_connect_show<\/code> (bool): show the button on the current page or not<\/li>\n<li><code>wa_connect_frontend_config<\/code> (array): the configuration that goes to the browser<\/li>\n<li><code>wa_connect_settings<\/code> (array): the settings after loading<\/li>\n<li><code>wa_connect_sanitize_settings<\/code> (array): the settings just before saving<\/li>\n<li><code>wa_connect_capability<\/code> (string): the capability needed for the admin screen (default manage_options)<\/li>\n<li><code>wa_connect_metabox_post_types<\/code> (array): the post types that get the block in the editor<\/li>\n<\/ul><\/dd>\n<dt id=\"are%20my%20settings%20deleted%20when%20i%20remove%20the%20plugin%3F\"><h3>Are my settings deleted when I remove the plugin?<\/h3><\/dt>\n<dd><p>Only if you switch on \"Delete data on uninstall\" under Advanced. Deactivating never deletes anything.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Changed: the admin screen, menu and editor box now carry the plugin name, WebBreda Chat<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>New: opening hours per day, including past midnight and 24-hour days<\/li>\n<li>New: closed date ranges and the Dutch public holidays in one click<\/li>\n<li>New: {NEXT_OPEN} in the notice shown outside opening hours<\/li>\n<li>New: the option to show a notice but still allow chatting<\/li>\n<li>New: a name, subtitle and profile picture in the panel header<\/li>\n<li>New: a label beside the button, an edge distance, and separate desktop\/mobile visibility<\/li>\n<li>New: hide the button on a single page from the editor<\/li>\n<li>New: the shortcode [wa_connect] and href=\"#wa-connect\"<\/li>\n<li>New: export, import and restore defaults<\/li>\n<li>New: a choice between Google Tag Manager and gtag.js, with separate events for opening and clicking through<\/li>\n<li>New: a JavaScript API (WAConnect.open() and so on) and hooks for developers<\/li>\n<li>New: a warning about unsaved changes, and saving with Ctrl\/Cmd+S<\/li>\n<li>New: uninstall.php, which deletes data only if you asked it to<\/li>\n<li>Improved: accessibility; the button used to be invisible to screen readers<\/li>\n<li>Improved: the panel only opens by itself if the visitor can actually chat<\/li>\n<li>Improved: every string is translatable<\/li>\n<li>Fixed: <em>bold<\/em> was stripped from the WhatsApp message<\/li>\n<li>Fixed: the colour picker did not load<\/li>\n<li>Fixed: saving jumped back to the first tab<\/li>\n<li>Fixed: it was impossible to switch off every day<\/li>\n<li>Fixed: text in the panel was not escaped<\/li>\n<li>Fixed: the phone number was logged to the console on every page<\/li>\n<li>Fixed: wa_connect_click fired on automatic opening as well<\/li>\n<li>Settings from 1.x are migrated automatically<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Closed days, with their own notice<\/li>\n<li>Opening hours now follow the site's timezone<\/li>\n<li>A status card in the dashboard showing whether you are open<\/li>\n<li>Fixed: active days were not shown as selected<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"A contact button that knows your opening hours: per day, past midnight, closed dates. Links to WhatsApp. No subscription, no external scripts.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/410319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=410319"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/webbreda"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=410319"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=410319"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=410319"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=410319"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=410319"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=410319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}