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_action( 'tribe_bar_datepicker_caption', 'tec_change_date_picker_text' ); | |
function tec_change_date_picker_text( $caption ){ | |
return 'New Text:'; | |
} |
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
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 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 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 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 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 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 | |
/* | |
* Open your Functions.php file | |
* On your `nectar_register_js` function after the `wp_register_script` for the `nectarFrontend`, you will append the following code | |
*/ | |
$js_config_array = array( | |
'permalink_settings' => get_option( 'permalink_structure' ), | |
'events_post_type' => TribeEvents::POSTTYPE | |
); |
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 | |
/* | |
* If you already have something in your functions.php, please remove these first few lines | |
*/ | |
add_filter( 'tribe_google_calendar_parameters', 'tec_hook_938252', 11 ); | |
function tec_hook_938252( $params ){ | |
// Since in our code we urlencode you need to first urldecode before doing anything | |
$params['details'] = urlencode( strip_tags( urldecode( $params['details'] ) ) ); |