You appear to be a bot. Output may be restricted
Description
Return a tel: or sms: link
Usage
$string = _bw_tel_link( $link, $number );
Parameters
- $link
- ( string ) required – may be null|n|y|tel|sms|other
- $number
- ( string ) required – the telephone number – which may include SMS text; ?body="blah"
Returns
string link value or nullSource
File name: oik/shortcodes/oik-phone.phpLines:
1 to 26 of 26
function _bw_tel_link( $link, $number ) { if ( $link ) { $link = strtolower( $link ); switch ( $link ) { case "n": $link = null; break; case "y": case "t": $link = "tel:"; break; case "s": $link = "sms:"; break; default: // Pass the given value through } if ( $link ) { $link .= $number; } } return( $link ); }View on GitHub View on Trac