Skip to content

Instantly share code, notes, and snippets.

@ckpicker
Created July 9, 2014 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckpicker/2f07cdfb455c8e416702 to your computer and use it in GitHub Desktop.
Save ckpicker/2f07cdfb455c8e416702 to your computer and use it in GitHub Desktop.
Filter Bar 3.6 // Remove Specific Tags from Filter Bar
add_filter( 'tribe_events_filter_values', 'display_only_event_tags', 10, 2);
function display_only_event_tags( $values, $slug ) {
$tags_to_remove = array( 'testing', 'event' );
if( $slug == 'tags' ) {
foreach ( $values as $i => $tag ) {
if ( in_array( $tag['name'], $tags_to_remove ) ) {
unset ( $values[$i] );
}
}
}
return $values;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment