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
if ( function_exists( 'tribe_is_event') ) { | |
/** | |
* Modifying the thumbnail arguments in Month view tooltip from a filter. | |
* | |
* @link https://theeventscalendar.com/support/forums/topic/month-view-tooltip-image-size/ | |
* @return array | |
*/ | |
function change_tribe_json_tooltip_thumbnail( $json ) { | |
$event_id = get_the_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
<?php | |
/** | |
* Plugin Name: The Events Calendar: Add HTML to Excerpts | |
* Plugin URI: http://theeventscalendar.com | |
* Description: Ensure that allowed HTML is preserved in Events Calendar tooltips. | |
* Version: 0.0.1 | |
* Author: Modern Tribe | |
* | |
* @link http://theeventscalendar.com/?p=1038901 | |
*/ |
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_action( 'parse_query', 'tribe_fix_tag_query' ); | |
function tribe_fix_tag_query( $query ) { | |
if ( $query->is_tag && (array) $query->get( 'post_type' ) != array( Tribe__Events::POSTTYPE ) ) { | |
if ( empty( $query->query_vars['post_type'] ) ) { | |
$query->query_vars['post_type'] = array( 'post' ); | |
} | |
if ( ! ( $query->query_vars['post_type'] == array( 'post' ) || $query->query_vars == 'post' ) ) { | |
remove_action( 'parse_query', array( 'Tribe__Events__Query', 'parse_query' ), 50 ); | |
remove_action( 'pre_get_posts', array( 'Tribe__Events__Query', 'pre_get_posts' ), 50 ); | |
} |
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 | |
/** | |
* Single Event Template for Widgets | |
* | |
* This template is used to render single events for both the calendar and advanced | |
* list widgets, facilitating a common appearance for each as standard. | |
* | |
* You can override this template in your own theme by creating a file at | |
* [your-theme]/tribe-events/pro/widgets/modules/single-event.php | |
* |