Last active
August 29, 2015 14:23
-
-
Save geoffgraham/011974ea4d1df5551e1a to your computer and use it in GitHub Desktop.
The Events Calendar 3.10 // Link Phone Numbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Link the Venue Phone Number | |
add_filter( 'tribe_get_phone', 'filter_link_the_phone' ); | |
function filter_link_the_phone( $phone ) { | |
return '<a href="tel:' . $phone . '">' . $phone . '</a>'; | |
} | |
// Link the Organizer Phone Number | |
add_filter( 'tribe_get_organizer_phone', 'filter_link_the_organizer_phone' ); | |
function filter_link_the_organizer_phone( $phone ) { | |
return '<a href="tel:' . $phone . '">' . $phone . '</a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment