SHARE
TWEET

Make phone numbers tel:123... links

BakerMan Dec 10th, 2013 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'tribe_get_phone', 'link_tribe_phone_numbers' );
  2.  
  3. function link_tribe_phone_numbers( $number ) {
  4.         if ( empty( $number ) ) return $number;
  5.         else return '<a href="tel:' . $number . '">' . $number . '</a>';
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top