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
/* | |
* The Events Calendar Pro - Hide Mini Calendar Event List Until Calendar Date is Clicked | |
* TEC PRO @3.11.1 | |
*/ | |
add_action( 'wp_footer', 'tribe_hide_mini_calendar_list_until_clicked', 50 ); | |
function tribe_hide_mini_calendar_list_until_clicked() { | |
?> | |
<script> | |
var $ = jQuery.noConflict(); |
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
add_filter( 'tribe_events_views_v2_view_list_repository_args', 'filter_categories_from_v2_views', 20 ); | |
add_filter( 'tribe_events_views_v2_view_month_repository_args', 'filter_categories_from_v2_views', 20 ); | |
/** | |
* Exclude Categories from The Events Calendar New Views | |
* For TEC 5.0 and Greater | |
* | |
* @param array $repository_args An array of query variables. | |
* | |
* @return array An array of query variables. | |
*/ |
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
// Disables on All Views | |
add_filter('tribe_events_views_v2_show_latest_past_events_view', 'tribe_show_latest_past_events' ); | |
// Disable for a Specific View ( replace month with list, day, map, photo, or week ) | |
//add_filter('tribe_events_views_v2_month_show_latest_past_events_view', 'tribe_show_latest_past_events' ); | |
/** | |
* Filter to Hide the Latest Past Events | |
* | |
* @return bool Return false to disable the Latest Past Events | |
*/ |
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
// Disables on All Views | |
add_filter('tribe_events_views_v2_show_latest_past_events_view', 'tribe_show_latest_past_events' ); | |
// Disable for a Specific View ( replace month with list, day, map, photo, or week ) | |
//add_filter('tribe_events_views_v2_month_show_latest_past_events_view', 'tribe_show_latest_past_events' ); | |
/** | |
* Filter to Hide the Latest Past Events | |
* | |
* @return bool Return false to disable the Latest Past Events | |
*/ |
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
/** | |
* Modify the Event Permalink if there is a Website URL in The Events Calendar 5.0 | |
* | |
* @param WP_Post $post Event Object | |
* | |
* @return WP_Post Event Object | |
*/ | |
function tribe_set_link_to_website_v2( $post ) { | |
$website_url = tribe_get_event_website_url( $post->ID ); |
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
/** | |
* Change Categories to Location for Coupon Creator Pro Filter Bar | |
* | |
* @param string $translation The translated text. | |
* @param string $text The text to translate. | |
* @param string $domain The domain slug of the translated text. | |
* @param string $context The option context string. | |
* | |
* @return string The translated text or the custom text. | |
*/ |
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
/** | |
* Include only Posts and Pages in Search | |
* Used with The Events Calendar 5.0 New Designs are Active | |
* | |
* @param $query WP_Query | |
* | |
* @return mixed | |
*/ | |
function exclude_from_search($query) { |
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
/** | |
* Change Are No Longer Available Message | |
* | |
* @param string $translation The translated text. | |
* @param string $text The text to translate. | |
* @param string $domain The domain slug of the translated text. | |
* @param string $context The option context string. | |
* | |
* @return string The translated text or the custom text. | |
*/ |
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
/** | |
* Change the RSVP Confirmation Message | |
* | |
* @param string $translation The translated text. | |
* @param string $text The text to translate. | |
* @param string $domain The domain slug of the translated text. | |
* @param string $context The option context string. | |
* | |
* @return string The translated text or the custom text. | |
*/ |
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
/** | |
* Change the Get Tickets and RSVP Now on List View and Single Events by Context | |
* | |
* @param string $translation The translated text. | |
* @param string $text The text to translate. | |
* @param string $context The option context string. | |
* @param string $domain The domain slug of the translated text. | |
* | |
* @return string The translated text or the custom text. |