Last active
August 22, 2017 23:29
-
-
Save cliffordp/d5cade1485a3275b5e26669062481528 to your computer and use it in GitHub Desktop.
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() !!!
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 | |
/** | |
* 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