Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Override the Events List widget's / shortcode's "View More..." link (may affect elsewhere, too) * * For https://theeventscalendar.com/support/forums/topic/find-out-more-link/ * !!! Customize the URL inside esc_url() !!!
<?php
/**
* Override the Events List widget's / shortcode's "View More..." link
*
* For https://theeventscalendar.com/support/forums/topic/find-out-more-link/
* !!! Customize the URL inside esc_url() !!!
*
* @see tribe_events_get_list_widget_view_all_link
*
* @link https://gist.github.com/cliffordp/d5cade1485a3275b5e26669062481528
*/
function pascal_custom_find_out_more_link() {
return esc_url( 'https://www.google.com/' ); // customize this!!!
}
add_filter( 'tribe_events_get_list_widget_view_all_link', 'pascal_custom_find_out_more_link' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment