Last active
March 24, 2017 22:39
-
-
Save cliffordp/0142cad413df89d0b6515e17e5084041 to your computer and use it in GitHub Desktop.
MT - TEC - Change where "All Events" links to
This file contains 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
<?php | |
/** | |
* MT - TEC - Change where "All Events" links to | |
* | |
* from https://gist.github.com/cliffordp/0142cad413df89d0b6515e17e5084041 | |
* | |
* for https://theeventscalendar.com/support/forums/topic/css-to-remove-all-events-link-not-working-for-me/ | |
* | |
* @return string | |
*/ | |
function custom_all_events_link( $url ) { | |
$new_url = 'http://destinationardmore.com/?page_id=12188'; | |
return esc_url( $new_url ); | |
} | |
add_filter( 'tribe_get_events_link', 'custom_all_events_link' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment