Title: dd2006's Replies | WordPress.org

---

# dd2006

  [  ](https://wordpress.org/support/users/dd2006/)

 *   [Profile](https://wordpress.org/support/users/dd2006/)
 *   [Topics Started](https://wordpress.org/support/users/dd2006/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dd2006/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dd2006/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dd2006/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dd2006/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dd2006/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] woocommerce put wa.me link instead of tel](https://wordpress.org/support/topic/woocommerce-put-wa-me-link-instead-of-tel-2/)
 *  Thread Starter [dd2006](https://wordpress.org/support/users/dd2006/)
 * (@dd2006)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-put-wa-me-link-instead-of-tel-2/#post-17110973)
 * **Thank you so much, this little script works regularly.**
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] woocommerce put wa.me link instead of tel](https://wordpress.org/support/topic/woocommerce-put-wa-me-link-instead-of-tel-2/)
 *  Thread Starter [dd2006](https://wordpress.org/support/users/dd2006/)
 * (@dd2006)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-put-wa-me-link-instead-of-tel-2/#post-17096062)
 * Thank you!
 * but I would like to make sure that the link can be clicked by me and that a chat
   opens with the customer and not the other way around and therefore what you suggested
   for which I thank you.
 * See this screenshot of the woocommerce order page to understand better.
 * [https://snipboard.io/yqQUCa.jpg](https://snipboard.io/yqQUCa.jpg)
 * thanks for any advice
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] woocommerce put wa.me link instead of tel](https://wordpress.org/support/topic/woocommerce-put-wa-me-link-instead-of-tel-2/)
 *  Thread Starter [dd2006](https://wordpress.org/support/users/dd2006/)
 * (@dd2006)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-put-wa-me-link-instead-of-tel-2/#post-17066308)
 * Hello and thanks! but I would simply like to modify the page and insert it into
   a child or override in order to be able to make updates. Tell me what to write
   in here:
 * $phonewa = ” HERE “; // how i can insert the get number??
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [woocommerce put wa.me link instead of tel](https://wordpress.org/support/topic/woocommerce-put-wa-me-link-instead-of-tel/)
 *  Thread Starter [dd2006](https://wordpress.org/support/users/dd2006/)
 * (@dd2006)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-put-wa-me-link-instead-of-tel/#post-17047257)
 * Thank you for your help and support
   i create a posto in WooCommerce Forum
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [woocommerce put wa.me link instead of tel](https://wordpress.org/support/topic/woocommerce-put-wa-me-link-instead-of-tel/)
 *  Thread Starter [dd2006](https://wordpress.org/support/users/dd2006/)
 * (@dd2006)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-put-wa-me-link-instead-of-tel/#post-17043743)
 * Thank you for your contribution 
   what I would like to do is add a code that duplicates
   the number, one with the “tel:” protocol and just below with the WhatsApp API
   protocol, but I can’t because I don’t know how to recover the clean number. I
   would like something like this to add this code:
 *     ```wp-block-code
       <?php
       $phonewa = "1234567890"; // how i can insert the number??
   
       // remove spaces
       $phonewa = preg_replace('/[^0-9]/', '', $phone);
   
       // is no empity
       if (!empty($phone)) {
           // WhatsApp its no empity
           $whatsappLink = "https://api.whatsapp.com/send?phone=+$phonewa";
   
           // show link
           echo "<a href='$whatsappLink'>dsend on WhatsApp</a>";
       } else {
           echo "number empity";
       }
       ?>
       ```
   
 * but I don’t know what to write in here to get the number: 
   $phonewa = ” HERE “;//
   how i can insert the get number??
    -  This reply was modified 2 years, 10 months ago by [dd2006](https://wordpress.org/support/users/dd2006/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] WhatsApp on WooCommerce](https://wordpress.org/support/topic/whatsapp-on-woocommerce/)
 *  Thread Starter [dd2006](https://wordpress.org/support/users/dd2006/)
 * (@dd2006)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/whatsapp-on-woocommerce/#post-16689688)
 * Hello and thank you very much!!

Viewing 6 replies - 1 through 6 (of 6 total)