Advertisement
ArcaniSGK507

Untitled

Feb 20th, 2025
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. $mensaje = "¡Titulo del contenido! 🚀\n\n" .
  2.            "👤 Usuario: " . $user->display_name . "\n" .
  3.            "🆔 ID: " . $user_id . "\n" .
  4.            "📧 Email: " . $user->user_email . "\n" .
  5.            "📞 Tel: " . $telefono . "\n" .
  6.            "🛍️ Servicio actual: " . $productos_str . "\n\n" .
  7.            "------------------------\n\n" .
  8.            "¡Gracias! 😊";
  9.  
  10. // Usamos rawurlencode para codificar correctamente los caracteres especiales y saltos de línea
  11. $mensaje_codificado = rawurlencode($mensaje);
  12.  
  13. $whatsapp_url = "https://api.whatsapp.com/send/?phone=123456789&text=" . $mensaje_codificado . "&type=phone_number&app_absent=0";
  14.  
  15. echo '<a href="' . esc_url($whatsapp_url) . '" target="_blank" class="button">nombre del botón</a>';
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement