Skip to content

Instantly share code, notes, and snippets.

@cliffordp
Last active March 24, 2017 22:39
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 cliffordp/0142cad413df89d0b6515e17e5084041 to your computer and use it in GitHub Desktop.
Save cliffordp/0142cad413df89d0b6515e17e5084041 to your computer and use it in GitHub Desktop.
MT - TEC - Change where "All Events" links to
<?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