This file contains hidden or 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 | |
| /* | |
| * If you already have something in your functions.php, please remove these first few lines | |
| */ | |
| add_filter( 'tribe_event_featured_image', 'tec_forum_938271', 11, 3 ); | |
| function tec_forum_938271( $featured_image, $post_id, $size ){ | |
| if ( ! empty( $featured_image ) ){ | |
| return $featured_image; | |
| } |
This file contains hidden or 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 | |
| /* | |
| * If you already have something in your functions.php, please remove these first few lines | |
| */ | |
| // First solution - links below the organizer section | |
| add_action( 'tribe_events_single_meta_organizer_section_end', array( 'TribeiCal', 'single_event_links' ) ); | |
| remove_action( 'tribe_events_single_event_after_the_content', array( 'TribeiCal', 'single_event_links' ) ); | |
| // Second solution - links on the right of the organizer box (after) |
This file contains hidden or 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 | |
| /* | |
| * If you already have something in your functions.php, please remove these first few lines | |
| */ | |
| function tec_forum_938692() { | |
| // don't show on password protected posts | |
| if ( is_single() && post_password_required() ) { | |
| return; |
This file contains hidden or 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 | |
| /* | |
| * If you already have something in your functions.php, please remove these first few lines | |
| */ | |
| add_action( 'init', 'tec_forum_939510', 11 ); | |
| function tec_forum_939510(){ | |
| remove_action( 'tribe_events_single_event_meta_primary_section_end', array( TribeEventsPro::instance()->single_event_meta, 'additional_fields' ), 10 ); | |
| add_action( 'tribe_events_single_meta_details_section_end', array( TribeEventsPro::instance()->single_event_meta, 'additional_fields' ), 10 ); |
This file contains hidden or 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
| diff --git a/lib/EmbeddedMaps.php b/lib/EmbeddedMaps.php | |
| index 7cc94c4..d7fd80b 100644 | |
| --- a/lib/EmbeddedMaps.php | |
| +++ b/lib/EmbeddedMaps.php | |
| @@ -88,7 +88,7 @@ class TribeEvents_EmbeddedMaps { | |
| $this->embedded_maps[] = array( | |
| 'address' => $this->address, | |
| - 'title' => tribe_get_venue( $this->venue_id ) | |
| + 'title' => esc_html( get_the_title( $this->venue_id ) ), |
This file contains hidden or 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_action( 'tribe_bar_datepicker_caption', 'tec_change_date_picker_text' ); | |
| function tec_change_date_picker_text( $caption ){ | |
| return 'New Text:'; | |
| } |
This file contains hidden or 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 | |
| /* | |
| * If you already have something in your functions.php, please remove these first few lines | |
| */ | |
| function tec_forum_939516( $json, $event, $additional ){ | |
| $venue = tribe_get_venue_id( $event ); | |
| if ( $venue ){ | |
| $json['venue'] = $venue; |
This file contains hidden or 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 | |
| // Register Redirect | |
| add_filter( 'registration_redirect', '_forum_tec_registration_redirect' ); | |
| function _forum_tec_registration_redirect() { | |
| return home_url( '/events/community/add' ); | |
| } | |
| // Login Redirect | |
| add_filter( 'login_redirect', '_forum_tec_login_redirect' ); | |
| function _forum_tec_login_redirect() { |
This file contains hidden or 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 Single Event | |
| * This file contains one event in the month view | |
| * | |
| * Override this template in your own theme by creating a file at [your-theme]/tribe-events/month/Single_Event.php | |
| * | |
| * @package TribeEventsCalendar | |
| * | |
| */ |
This file contains hidden or 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 | |
| /* | |
| * If you already have something in your functions.php, please remove these first few lines | |
| */ | |
| // Usage tribe_is_past_event( $event_id ) | |
| function tribe_is_past_event( $event = null ){ | |
| if ( ! tribe_is_event( $event ) ){ | |
| return false; | |
| } | |
| $event = tribe_events_get_event( $event ); |