From d9061611a75d07f13983ef50b515c9e771ce19ab Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 8 Oct 2019 12:54:10 -0400 Subject: [PATCH] adding mobile active number function for telephone numbers --- functions.php | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.17.1