Force usage of api.whatsapp.com URL instead of web.whatsapp.com
-
Hello Joinchat team and community,
I would like the WhatsApp button on my site to always use the universal
api.whatsapp.com/send?phone=
URL for all users (both mobile and desktop).Currently, the plugin correctly opens the app on mobile, but on desktop, it directs users to
web.whatsapp.com
. I need to force theapi.whatsapp.com
link structure to ensure consistent “Click to Chat” behavior on all devices.I have already checked all the plugin settings and I cannot find an option to change this.
A custom JavaScript to intercept the click is not a viable solution for me, as my website runs under a very sensitive security/antivirus system that flags and blocks that kind of script.
Is there a built-in way to achieve this? For example, is there a PHP snippet or a developer hook that I can use in my theme’s functions.php file to modify the generated URL?
Any help would be greatly appreciated. Thank you.
Joinchat Version: 6.0.8
- You must be logged in to reply to this topic.