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
//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 ($) { |
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 | |
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; | |
} |