From: Anthony Talarico Date: Tue, 8 Oct 2019 16:54:10 +0000 (-0400) Subject: adding mobile active number function for telephone numbers X-Git-Tag: v1.1.0^2~48 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=d9061611a75d07f13983ef50b515c9e771ce19ab;p=WP-Themes%2Fpetoskeyarea.git adding mobile active number function for telephone numbers --- diff --git a/functions.php b/functions.php index 47106a5..f4f34ad 100644 --- a/functions.php +++ b/functions.php @@ -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