How to create a WhatsApp share link in PHP?

Use following code –

<a target="_blank" class="share-button share-whatsapp" href="https://wa.me/send?text=<?php echo $postUrl; ?>" data-original-title="WhatsApp" data-action="share/whatsapp/share"><i class="fab fa-whatsapp faicons"></i></a>

Leave a Reply

Related Posts