Last active
August 29, 2015 14:20
-
-
Save geoffgraham/2fe5ba8350c3a8f630d0 to your computer and use it in GitHub Desktop.
Events Calendar 3.9.3 // Change Event Website URL to a Linked Label
This file contains hidden or 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
add_filter('tribe_get_event_website_link_label', 'tribe_get_event_website_link_label_default'); | |
function tribe_get_event_website_link_label_default ($label) { | |
if( $label == tribe_get_event_website_url() ) { | |
$label = "Visit Website »"; | |
} | |
return '<a href="' . tribe_get_event_website_url() . '">' . $label . ' </a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment