Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tribe_get_unslashed_event_link() {
- $link = tribe_get_event_link();
- $last_slash = strrpos($link, '/');
- $link_length = strlen($link) - 1;
- if ($last_slash === $link_length) $link = substr($link, 0, $link_length);
- return $link;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement