Skip to content

Instantly share code, notes, and snippets.

<?php
add_filter( 'tribe_events_filter_values', 'tribe_filter_event_categories', 10, 2 );
function tribe_filter_event_categories( $values, $slug ) {
if ( $slug == 'eventcategory' ) {
foreach ( $values as $i => $category ) {
if ( $category['name'] == 'Event Category 1' ) {
unset ( $values[$i] );
break;
}
@ckpicker
ckpicker / gist:9963018
Last active August 29, 2015 13:58 — forked from faction23/gist:8675209
Events Calendar 3.4 // Modify height of Week View and change start time
//This function adds javascript to the <head> declaration of your site
//NOTE: This is only compatible with version 3.4
add_action( 'wp_head', 'modify_week_view');
function modify_week_view() {
?>
<script type="text/javascript">
jQuery(document).ready(function ($) {