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
function tribe_remove_ical_feed_link() { | |
if ( function_exists( 'tribe' ) ) { | |
remove_action( 'wp_head', array( tribe( 'tec.iCal' ), 'set_feed_link' ), 2 ); | |
} | |
} | |
add_action( 'init', 'tribe_remove_ical_feed_link', 20 ); |
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 attendee_screen_filter_out_checked_in_attendees( $query ) { | |
$attendee_post_types = array( | |
'tribe_rsvp_attendees', | |
'tribe_wooticket' | |
); | |
if ( ! in_array( $query->get( 'post_type' ), $attendee_post_types ) ) { | |
return; | |
} |
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 | |
//Retrieve venues that match query criteria | |
$args = array( | |
'nopaging' => true, | |
'post_type'=>'tribe_venue', | |
//Only query venues in Frankfurt | |
'meta_query' => array( | |
array( | |
'key' => '_VenueCity', | |
'value' => array( 'Frankfurt'), |
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 | |
/* | |
* The Events Calendar Remove Events from All Views (Except Category Pages) | |
* add to theme's functions.php file | |
* @version 4.5.5 | |
* replace these example slugs with your event category slugs: array( 'family-fun', 'bbq' ) | |
*/ | |
add_action( 'pre_get_posts', 'tribe_exclude_events_categories_all_views' ); |
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 | |
* A single event. This displays the event title, description, meta, and | |
* optionally, the Google map for the event. | |
* | |
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/single-event.php | |
* | |
* @package TribeEventsCalendar | |
* @version 4.3 |
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 | |
// Text über/unter Ausstellungskalender (The Event Calendar) | |
function tribe_custom_content_before() { | |
if( ! tribe_is_community_edit_event_page() && ! tribe_is_community_my_events_page() ) { | |
//Before content (Month view) A | |
if( tribe_is_month() ) { |
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 | |
// Don't load directly | |
defined( 'WPINC' ) or die; | |
/** | |
* Event Submission Form Taxonomy Block | |
* Renders the taxonomy field in the submission form. | |
* | |
* Override this template in your own theme by creating a file at | |
* [your-theme]/tribe-events/community/modules/taxonomy.php |
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 | |
/** | |
* List View Loop | |
* This file sets up the structure for the list loop | |
* | |
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/loop.php | |
* | |
* @version 4.4 | |
* @package TribeEventsCalendar | |
* |
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 | |
/** | |
* Month View Single Day | |
* This file contains one day in the month grid | |
* | |
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/month/single-day.php | |
* | |
* @package TribeEventsCalendar | |
* | |
*/ |
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
/* Tribe, limit ticket qty */ | |
function tribe_limit_tickets() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready( function( $ ) { | |
// do this if tickets available | |
if ( $('.available-stock').length ) { | |
// set max qty to 2 | |
$('.tribe-events-tickets .qty').attr('max', 2); |
OlderNewer