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 | |
/** | |
* Plugin Name: TEC: Purge DB | |
* Plugin URI: http://www.theeventscalendar.com | |
* Description: Add-on for The Events Calendar. Purges the deleted events from the database, 50 at a time. | |
* Version: 1.0 | |
* Author: Andras Guseo | The Events Calendar | |
* Author URI: http://www.theeventscalendar.com | |
* License: GPLv2 or later | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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 | |
/* Adds City below event date in photo view | |
* Paste it in your child theme's functions.php file | |
*/ | |
function add_venue_to_photo_view() { | |
/* If we have city, then show city */ | |
if ( tribe_get_city() ) { | |
$venue = tribe_get_city(); | |
} | |
echo $venue; |
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 Single Event | |
* This file contains one event in the list view | |
* | |
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/single-event.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
<?php | |
/** | |
* Single Event Meta (Venue) Template | |
* | |
* Override this template in your own theme by creating a file at: | |
* [your-theme]/tribe-events/modules/meta/venue.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
/* | |
* The Events Calendar Remove Events from Month and List Views | |
* add coding to theme's functions.php | |
* @version 3.12 | |
* modify here with event category slugs: array( 'concert', 'convention' ) | |
*/ | |
add_action( 'pre_get_posts', 'tribe_exclude_events_category_month_list' ); | |
function tribe_exclude_events_category_month_list( $query ) { | |
if ( isset( $query->query_vars['eventDisplay'] ) && ! is_singular( 'tribe_events' ) && ! tribe_is_community_my_events_page() ) { |
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 | |
/** | |
* Photo View Single Event | |
* This file contains one event in the photo view | |
* | |
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/pro/photo/single_event.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
<?php | |
/* | |
* Hide "Eintritt Frei" from event details in single event view | |
* Paste this to your child theme's functions.php file | |
*/ | |
add_action( 'tribe_before_get_template_part', function( $tpl ) { | |
if ( 'modules/meta/details.php' === $tpl ) { | |
add_filter( 'tribe_get_formatted_cost', '__return_empty_string' ); | |
} | |
} ); |
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
/* | |
* Copy this file: | |
* wp-content\plugins\events-calendar-pro\src\views\pro\widgets\this-week-widget.php | |
* Here: | |
* wp-content\themes\{your-theme}\tribe-events\pro\widgets\this-week-widget.php | |
* Replace lines 20-22 with the below | |
*/ | |
<!-- This Week Title --> | |
<?php do_action( 'tribe_events_before_this_week_title' ) ?> | |
<?php $thismonday = tribe_get_this_week_first_week_day( $this_week_template_vars['start_date'] ); |
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 'Free - ' from price | |
* Add to your child theme's functions.php file | |
*/ | |
add_filter ( 'tribe_get_cost', 'tribe_not_show_free', 10, 3 ); | |
function tribe_not_show_free ( $cost, $post_id, $with_currency_symbol ) { | |
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 Pro | |
* Show venue image and organizer image on single event page | |
* Paste the below in your child theme's functions.php file | |
* | |
* For $size you can use: thumb, medium, large, full | |
* For $link you can use: true or false; links to the event page. | |
*/ | |
function add_venue_image_to_single_event_page() { |
OlderNewer