{"id":237547,"date":"2025-06-21T12:41:25","date_gmt":"2025-06-21T12:41:25","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/smart-chat-button\/"},"modified":"2025-06-23T13:22:24","modified_gmt":"2025-06-23T13:22:24","slug":"smart-chat-button","status":"publish","type":"plugin","link":"https:\/\/ar.wordpress.org\/plugins\/smart-chat-button\/","author":20704352,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.7.0","stable_tag":"1.7.0","tested":"6.8.5","requires":"3.7","requires_php":"7.2","requires_plugins":null,"header_name":"Smart Chat Button","header_author":"mrsoukbh","header_description":"Add a floating WhatsApp button to your WordPress site.","assets_banners_color":"61c4a0","last_updated":"2025-06-23 13:22:24","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/linkze.me\/donate-me","header_plugin_uri":"https:\/\/linkze.me\/","header_author_uri":"https:\/\/profiles.wordpress.org\/mrsoukbh\/","rating":0,"author_block_rating":0,"active_installs":20,"downloads":476,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"mrsoukbh","date":"2025-06-21 12:41:07"},"1.2.0":{"tag":"1.2.0","author":"mrsoukbh","date":"2025-06-22 09:57:39"},"1.3.0":{"tag":"1.3.0","author":"mrsoukbh","date":"2025-06-22 13:28:56"},"1.4.0":{"tag":"1.4.0","author":"mrsoukbh","date":"2025-06-22 14:23:00"},"1.5.0":{"tag":"1.5.0","author":"mrsoukbh","date":"2025-06-23 07:35:50"},"1.6.0":{"tag":"1.6.0","author":"mrsoukbh","date":"2025-06-23 08:32:21"},"1.7.0":{"tag":"1.7.0","author":"mrsoukbh","date":"2025-06-23 13:22:24"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3315647,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3315647,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3315647,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3315647,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0","1.2.0","1.3.0","1.4.0","1.5.0","1.6.0","1.7.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3315901,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3315901,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3315901,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3315901,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3315647,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3315647,"resolution":"6","location":"assets","locale":""}},"screenshots":{"1":"WhatsApp Button Settings (General)","2":"WhatsApp Button Settings (Position &amp; Styling)","3":"WhatsApp Button with Floating Text Bubble (Bottom Left)","4":"WhatsApp Button without Text Bubble (Bottom Left)","5":"WhatsApp Button with Floating Text Bubble (Bottom Right)","6":"WhatsApp Button without Text Bubble (Bottom Right)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[5707,30237,161560,3160,286],"plugin_category":[41,45],"plugin_contributors":[243257],"plugin_business_model":[],"class_list":["post-237547","plugin","type-plugin","status-publish","hentry","plugin_tags-chat","plugin_tags-floating-button","plugin_tags-sticky-button","plugin_tags-whatsapp","plugin_tags-woocommerce","plugin_category-communication","plugin_category-ecommerce","plugin_contributors-mrsoukbh","plugin_committers-mrsoukbh"],"banners":{"banner":"https:\/\/ps.w.org\/smart-chat-button\/assets\/banner-772x250.png?rev=3315647","banner_2x":"https:\/\/ps.w.org\/smart-chat-button\/assets\/banner-1544x500.png?rev=3315647","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/smart-chat-button\/assets\/icon-128x128.png?rev=3315647","icon_2x":"https:\/\/ps.w.org\/smart-chat-button\/assets\/icon-256x256.png?rev=3315647","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/smart-chat-button\/assets\/screenshot-1.png?rev=3315901","caption":"WhatsApp Button Settings (General)"},{"src":"https:\/\/ps.w.org\/smart-chat-button\/assets\/screenshot-2.png?rev=3315901","caption":"WhatsApp Button Settings (Position &amp; Styling)"},{"src":"https:\/\/ps.w.org\/smart-chat-button\/assets\/screenshot-3.png?rev=3315901","caption":"WhatsApp Button with Floating Text Bubble (Bottom Left)"},{"src":"https:\/\/ps.w.org\/smart-chat-button\/assets\/screenshot-4.png?rev=3315901","caption":"WhatsApp Button without Text Bubble (Bottom Left)"},{"src":"https:\/\/ps.w.org\/smart-chat-button\/assets\/screenshot-5.png?rev=3315647","caption":"WhatsApp Button with Floating Text Bubble (Bottom Right)"},{"src":"https:\/\/ps.w.org\/smart-chat-button\/assets\/screenshot-6.png?rev=3315647","caption":"WhatsApp Button without Text Bubble (Bottom Right)"}],"raw_content":"<!--section=description-->\n<p><strong>Smart Chat Button<\/strong> is a fast, lightweight, and highly customizable plugin for WordPress. Effortlessly display a stylish floating WhatsApp chat button on your website to allow visitors to chat with you or your team in a single click.<\/p>\n\n<p>After clicking the button, users are taken directly to WhatsApp (on mobile) or WhatsApp Web (on desktop) to start a conversation.<\/p>\n\n<p><strong>Main Features:<\/strong>\n- \ud83d\udcf1 WhatsApp &amp; WhatsApp Business integration\n- \ud83d\udcac Prefilled messages with dynamic variables (e.g. <code>{product_title}<\/code>)\n- \ud83c\udfa8 Custom icon support (SVG &amp; PNG)\n- \ud83e\uddca Modern floating button with smooth animation (glassmorphic style)\n- \ud83d\udde8\ufe0f Sliding chat drawer with custom text, colors, and multi-agent support\n- \ud83d\udee0\ufe0f Intuitive and responsive admin settings panel\n- \u267f Accessible markup with keyboard navigation support\n- \ud83c\udf0d Fully translatable (WPML &amp; Polylang compatible)\n- \ud83d\uded2 WooCommerce integration \u2013 display only on product pages if needed\n- \ud83d\udcd0 Position button bottom-left or bottom-right\n- \ud83d\udccf Customizable margins for mobile, tablet, and desktop<\/p>\n\n<p>Perfect for e-commerce stores, agencies, and service providers who want to improve customer engagement and support via direct WhatsApp messaging.<\/p>\n\n<!--section=installation-->\n<h4>Automatic via WordPress Dashboard<\/h4>\n\n<ol>\n<li>Go to Plugins \u2192 Add New.<\/li>\n<li>Search for \"Smart Chat Button\".<\/li>\n<li>Click <strong>Install Now<\/strong> and then <strong>Activate<\/strong>.<\/li>\n<li>Visit <strong>Settings \u2192 Smart Chat Button<\/strong> to configure.<\/li>\n<\/ol>\n\n<h4>Manual Upload via FTP<\/h4>\n\n<ol>\n<li>Download the plugin ZIP.<\/li>\n<li>Unzip and upload the <code>smart-chat-button<\/code> folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate via Plugins in your WordPress admin.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20set%20my%20whatsapp%20number%3F'><h3>How do I set my WhatsApp number?<\/h3><\/dt>\n<dd><p>Navigate to <strong>Settings \u2192 Smart Chat Button<\/strong> and enter your WhatsApp number (with country code, no special characters like <code>+<\/code>, <code>-<\/code>, <code>(<\/code>, <code>)<\/code>, or spaces).<\/p>\n\n<p>Example:<br \/>\n\u2705 Correct: <code>15551234567<\/code><br \/>\n\u274c Incorrect: <code>+1 (555) 123-4567<\/code><\/p><\/dd>\n<dt id='can%20i%20change%20the%20button%E2%80%99s%20position%3F'><h3>Can I change the button\u2019s position?<\/h3><\/dt>\n<dd><p>Yes, choose <strong>Bottom Left<\/strong> or <strong>Bottom Right<\/strong> in the settings.<\/p><\/dd>\n<dt id='can%20i%20show%20the%20button%20only%20on%20woocommerce%20product%20pages%3F'><h3>Can I show the button only on WooCommerce product pages?<\/h3><\/dt>\n<dd><p>Enable <strong>Only Show on Product Pages (WooCommerce)<\/strong> in the settings to limit button display.<\/p><\/dd>\n<dt id='can%20i%20add%20a%20prefilled%20message%3F'><h3>Can I add a prefilled message?<\/h3><\/dt>\n<dd><p>Absolutely! Enter your default message in the settings. Use <code>{product_title}<\/code> for dynamic product titles on WooCommerce.<\/p><\/dd>\n<dt id='is%20the%20plugin%20translation-ready%3F'><h3>Is the plugin translation-ready?<\/h3><\/dt>\n<dd><p>Yes, all strings are translatable, with a <code>.pot<\/code> file included in the <code>languages<\/code> folder. Compatible with WPML, Polylang, and Loco Translate.<\/p><\/dd>\n<dt id='will%20this%20plugin%20affect%20my%20site%20speed%3F'><h3>Will this plugin affect my site speed?<\/h3><\/dt>\n<dd><p>No. The plugin is lightweight and optimized. It loads minimal assets, only on the frontend when enabled.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.7.0<\/h4>\n\n<ul>\n<li>New: Click counter now records clicks on the main WhatsApp button even when no team members are set.<\/li>\n<li>Fix: Admin stats now display all click counts correctly (main button and team members).<\/li>\n<li>Improvement: Code cleanup and improved compatibility with most WordPress themes.<\/li>\n<li>Other: Minor bug fixes and stability enhancements.<\/li>\n<\/ul>\n\n<h4>1.6.0<\/h4>\n\n<ul>\n<li>New: If <strong>no team members are added<\/strong>, clicking the main WhatsApp button goes straight to WhatsApp chat instead of opening the chat drawer\/modal.<\/li>\n<li>New: Improved plugin directory detection and icon URL handling for maximum compatibility with custom folders or multisite.<\/li>\n<li>New: Accessibility \u2013 admin settings tabs use correct ARIA roles and keyboard navigation (tab, arrow keys, focus state).<\/li>\n<li>Improvement: Admin tabs now fully follow WordPress design, are more reliable, and persist the active tab after refresh.<\/li>\n<li>Improvement: Plugin settings panel UI updated for clarity and usability.<\/li>\n<li>Fix: No more duplicate or broken icon paths when using custom icons or media uploads.<\/li>\n<li>Fix: Drawer\/modal will <strong>not open<\/strong> if no team members exist (prevents empty\/blank UI).<\/li>\n<li>Fix: Prevents unnecessary asset loading or rendering on admin and non-public pages.<\/li>\n<li>Security: Enhanced sanitization for all dynamic and user-uploaded image outputs (SVG, PNG, media library).<\/li>\n<li>Security: All SVGs run through stricter <code>wp_kses<\/code> filtering.<\/li>\n<li>Code: Refactored button template for PHPCS\/Plugin Check compliance (no direct plugin asset URLs, all images via Media Library or loader function).<\/li>\n<li>Code: Old\/legacy JS and CSS removed; improved code comments and documentation.<\/li>\n<li>Tested: WordPress 6.8 compatibility and WooCommerce latest.<\/li>\n<li>Docs: Readme updated with new instructions and screenshots.<\/li>\n<\/ul>\n\n<h4>1.5.0<\/h4>\n\n<ul>\n<li>Feature: Added support for PNG icons in main button (in addition to SVG).<\/li>\n<li>Improvement: Improved button and icon HTML\/CSS for better centering\/scaling of custom images.<\/li>\n<li>Fix: Button icon now reliably appears regardless of icon file type or theme CSS.<\/li>\n<li>Enhancement: Improved compatibility with popular themes and page builders.<\/li>\n<li>Fix: Resolved overlapping between button and drawer across devices.<\/li>\n<li>Improvement: Refined hover\/focus states for better accessibility.<\/li>\n<li>Improvement: CSS refactored for easier maintenance and responsive design.<\/li>\n<li>Security: Minor enhancements for image URL\/output sanitization.<\/li>\n<li>Docs: Updated documentation for new icon guidelines.<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>Modernized chat member UI: Card is now fully clickable for better UX.<\/li>\n<li>Inline SVG loader for safer, more flexible WhatsApp icon display.<\/li>\n<li>Improved fallback\/sanitization for team member avatars.<\/li>\n<li>Per-member click stats added to admin Stats tab.<\/li>\n<li>Card visuals refreshed for a cleaner look.<\/li>\n<li>Improved icon loading logic and security.<\/li>\n<li>date() replaced with gmdate() in stats for timezone safety.<\/li>\n<li>All output escaping issues fixed; fully passes Plugin Check.<\/li>\n<li>Fixed PHP warnings for undefined stats\/members.<\/li>\n<li>Fixed avatar display and SVG loading issues.<\/li>\n<li>Button\/drawer now open\/close reliably on all browsers.<\/li>\n<li>Deprecated per-row WhatsApp links\u2014main card is now clickable.<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Team Members: Add\/manage multiple WhatsApp agents with roles, avatars, and toggle.<\/li>\n<li>Modern Admin UI: Improved settings panel with tabs and responsiveness.<\/li>\n<li>Button Click Stats: View daily\/total clicks (last 7 days) in admin.<\/li>\n<li>Custom Icon Upload: Use your own WhatsApp icon (SVG or image).<\/li>\n<li>Live Icon Preview: Real-time in design settings.<\/li>\n<li>More Controls: Device-specific margins and visibility toggles.<\/li>\n<li>Role\/Avatar for members: Easy upload and preview.<\/li>\n<li>Improved: All output escaping, sanitization, and coding standards.<\/li>\n<li>Fixed: Button\/modal positioning, click tracking, SVG\/avatar rendering, and navigation state.<\/li>\n<li>Upgrade notes: After update, review Team Members and re-save settings; clear cache for changes.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Added Stats tab for WhatsApp click tracking (via AJAX)<\/li>\n<li>Minor style\/version updates<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added media library icon selector and secure image output<\/li>\n<li>Redesigned admin settings panel<\/li>\n<li>Elementor widget support<\/li>\n<li>Custom sliding chat drawer<\/li>\n<li>Glassmorphic button style<\/li>\n<li>Improved color\/text customization<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release: Floating WhatsApp button, positioning, margins<\/li>\n<\/ul>","raw_excerpt":"Easily add a beautiful, customizable WhatsApp chat button to your WordPress or WooCommerce site and boost customer engagement instantly.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/237547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=237547"}],"author":[{"embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mrsoukbh"}],"wp:attachment":[{"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=237547"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=237547"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=237547"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=237547"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=237547"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=237547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}