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' );