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 | |
| // Export data for event, called by excel request below | |
| if (!function_exists('espresso_event_export')) { | |
| function espresso_event_export($ename) { | |
| global $wpdb, $org_options; | |
| $sql = ''; | |
| $htables = array(); | |
| $htables[] = 'Event 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 | |
| //* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
| add_shortcode( 'ee_ticket_list_for_event', 'ee_ticket_list_for_event_shortcode' ); | |
| function ee_ticket_list_for_event_shortcode( $atts ) { | |
| $atts = shortcode_atts( array( | |
| 'id' => 0 | |
| ), $atts, 'ee_ticket_list_for_event' ); | |
| if($atts['id'] == 0){ | |
| 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 | |
| //* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
| add_action( | |
| 'AHEE__EED_Events_Archive__use_filterable_display_order__after_add_filters', | |
| function(){ | |
| remove_action( | |
| 'AHEE__EED_Events_Archive__use_filterable_display_order__after_add_filters', | |
| array('EED_People_Event_Template_Parts', 'add_people_event_details_filters'), | |
| 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
| <?php | |
| //* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
| function ee_change_calendar_spaces_left( | |
| $text, | |
| $datetime | |
| ) { | |
| $text = $datetime->sum_tickets_initially_available(); | |
| return $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 | |
| /* | |
| Plugin Name: mu-plugin (must use) that deactivates all emails for Event Espresso 3 | |
| */ | |
| if (!function_exists('event_espresso_send_email')) { | |
| function event_espresso_send_email($params) { | |
| 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 | |
| // Options | |
| $date_format = get_option( 'date_format' ); | |
| $time_format = get_option( 'time_format' ); | |
| $temp_month = ''; | |
| $reg_button_text = !isset($button_text) ? __('Register Now!', 'event_espresso') : $button_text; | |
| $alt_button_text = !isset($alt_button_text) ? __('View Details', 'event_espresso') : $alt_button_text;//For alternate registration pages | |
| if ( have_posts() ) : | |
| // allow other stuff |
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 | |
| //* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
| add_filter( | |
| 'FHEE__Events_Admin_Page__get_events__where', | |
| 'ee_add_venue_city_search_field', | |
| 10, | |
| 2 | |
| ); | |
| function ee_add_venue_city_search_field( $where, $data ) { |
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 | |
| //* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
| add_filter( | |
| 'FHEE__EE_Register_CPTs__get_CPTs__cpts', | |
| 'ee_remove_event_cpt_archive' | |
| ); | |
| function ee_remove_event_cpt_archive( $cpt_registry_array ) { | |
| if ( isset( $cpt_registry_array['espresso_events'] ) ) { | |
| $cpt_registry_array['espresso_events']['args']['has_archive'] = false; |
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 | |
| //* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
| add_action('pre_get_posts', 'my_change_venue_details'); | |
| function my_change_venue_details() { | |
| global $post; | |
| if ($post instanceof WP_Post && $post->post_type == 'espresso_venues' && is_single()) { | |
| remove_filter('the_content', array(EED_Venue_Single::instance(), 'venue_location'), 110, 1); | |
| add_filter('the_content', 'add_venue_details_in_custom_order', 120, 1); | |
| } |
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
| /** | |
| * Fixes the mandrill's silent discard of cc. | |
| */ | |
| //first add filter to EE's email process to modify `cc:` header to `x-cc` so it gets past the initial mandrill header setup. | |
| add_filter('FHEE__EE_Email_messenger___headers', function($headers) { | |
| foreach ($headers as $header) { | |
| if (strpos($header, 'cc: ') !== false) { | |
| $headers[] = 'x-cc: ' . str_replace('cc: ', '', $header); | |
| } | |
| } |