Skip to content

Instantly share code, notes, and snippets.

@geoffgraham
Last active August 29, 2015 14:23
Show Gist options
  • Save geoffgraham/011974ea4d1df5551e1a to your computer and use it in GitHub Desktop.
Save geoffgraham/011974ea4d1df5551e1a to your computer and use it in GitHub Desktop.
The Events Calendar 3.10 // Link Phone Numbers
// 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