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
/* start at 8:00 AM */ | |
.tribe-week-grid-inner-wrap > .tribe-week-grid-block:nth-child(-n+8), | |
.tribe-week-grid-hours > div:nth-child(-n+8) { | |
display: none; | |
} | |
/* end at 10:00 PM */ | |
.tribe-week-grid-inner-wrap > .tribe-week-grid-block:nth-child(11), | |
.tribe-week-grid-hours > div:nth-child(11) { | |
display: none; |
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 | |
/* Apply the following snippet in the functions.php file of your theme (without the PHP tag at the top) */ | |
add_action( 'tribe_events_community_form', function() { | |
$event_form = Tribe__Events__Community__Main::instance()->form; | |
remove_action( 'tribe_events_date_display', array( $event_form, 'loadRecurrenceData' ) ); | |
}, 5 ); |
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 | |
/* Tribe, remove child recurring events from photo view */ | |
function tribe_set_default_date ( $query ) { | |
if ( tribe_is_photo() ) { | |
$query->set( 'post_parent', '0' ); | |
} | |
} | |
add_action( 'pre_get_posts', 'tribe_set_default_date', 15 ); |
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 | |
/* Tribe, remove recurrence from new event and edit event screens */ | |
function tribe_remove_recurrence ( ) { | |
remove_action( 'tribe_events_date_display', array( 'Tribe__Events__Pro__Recurrence__Meta', 'loadRecurrenceData' ) ); | |
} | |
add_action( 'admin_init', 'tribe_remove_recurrence' ); |
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 | |
/* Tribe, add support for post categories */ | |
function change_event_type_args ( $args ) { | |
$args['taxonomies'][] = 'category'; | |
return $args; | |
} | |
add_filter('tribe_events_register_event_type_args', 'change_event_type_args'); |
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 | |
function show_all_markers( $data ) { | |
if ( ! isset( $data['markers'] ) ) return $data; | |
$cached_markers = get_transient( 'all_geo_markers_store' ); | |
if ( $cached_markers ) { | |
$data['markers'] = $cached_markers; | |
return $data; | |
} |
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 | |
/* Tribe, modify this week widget date format */ | |
function tribe_modify_this_week_date_format ( ) { | |
return 'j'; | |
} | |
add_filter( 'tribe_events_this_week_date_format', 'tribe_modify_this_week_date_format' ); |
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 | |
/** | |
* Renders the attendee list for an event | |
* | |
* Override this template in your own theme by creating a file at: | |
* | |
* [your-theme]/tribe-events/attendees-list.php | |
* | |
* @version 4.3.5b | |
* |
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 | |
(function () { | |
var lastTitle = undefined; | |
function checkTitle() { | |
if (lastTitle != document.title) { | |
document.title = 'My Desired Title'; | |
lastTitle = document.title; | |
} | |
setTimeout(checkTitle, 100); | |
}; |