How to disable the wa_bgsound Cookie from your plugin? I dont want to have a "click" sound when open the page.
You can edit this file modules/mod_whatsapp_agent/tmpl/default.php directly or by doing a template override. Delete the these lines in the file (at the end of file):
<?php
$cookie_wa_bgsound = $app->input->cookie->get('wa_bgsound', null);
if(!isset($cookie_wa_bgsound)) {
?>
<audio src="modules/mod_whatsapp_agent/tmpl/assets/sound/click.mp3" type="audio/mpeg" autoplay></audio>
<script>
jQuery(document).ready(function() {
Cookies.set('wa_bgsound', 'yes', { expires: 7, path: '/'});
});
</script>
<?php } ?>