I am placing a WhatsApp URL in PHP in the following code:
$url = "https://api.whatsapp.com/send?phone=57xxxxxxxx&text=Bienvenido%20a%20xxxxxx,%20estas%20interesado%20en%20el%20Tartar%20de%20Atun%20";
$link = sprintf( '<a href="'.$url.'" rel="nofollow" data-product_id="%s" data-product_sku="%s" data-quantity="%s" class="whatssapp">Pídelo ahora</a>');
But I get the following error:
sprintf (): Too few arguments in C: \ xampp \ htdocs \ elmandadito \ wp-content \ themes \ online-shop \ functions.php
When I change the URL with https://www.google.com.co
it works fine.