Skip to content

Instantly share code, notes, and snippets.

@theeventscalendar
Forked from geoffgraham/gist:354ea76430319568cf06
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theeventscalendar/23c7d432cb98ee86d543 to your computer and use it in GitHub Desktop.
Save theeventscalendar/23c7d432cb98ee86d543 to your computer and use it in GitHub Desktop.
Displays a link to your Event Website as 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