Skip to content

Instantly share code, notes, and snippets.

@geoffgraham
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save geoffgraham/354ea76430319568cf06 to your computer and use it in GitHub Desktop.
Save geoffgraham/354ea76430319568cf06 to your computer and use it in GitHub Desktop.
Events Calendar 3.9.3 // Change Website URL to a Button
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 »";
$class = "my-button-class";
}
return '<a class="' . $class . '" 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