adding mobile active number function for telephone numbers
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 8 Oct 2019 16:54:10 +0000 (12:54 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 8 Oct 2019 16:54:10 +0000 (12:54 -0400)
functions.php

index 47106a5..f4f34ad 100644 (file)
@@ -430,4 +430,7 @@ function text_excerpt($text, $max_length = 155, $cut_off = ' ...', $keep_word =
     }
 
     return $text;
+}
+function mobile_active($numberString){
+    return "tel:".str_replace(array('.', ',','-'), '' , $numberString);
 }
\ No newline at end of file