Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // LATEST VERSION CAN BE FOUND HERE: https://gist.github.com/elimn/5bac70de00ec92804dc7
- // This changes the event link to the website URL link if that is set
- add_filter('tribe_get_event_link', 'tribe_set_link_website');
- function tribe_set_link_website ($link) {
- $website_url = tribe_get_event_website_url();
- // Only swaps link if set
- if (!empty($website_url)) {
- $link = $website_url;
- }
- return $link;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement